A Sample Grid Service
@ISA = qw( OGSI::GS ); #inherit from base Grid Service class – pick up Destroy,findServiceData etc….
$count = 0; #this is our state
#called on creation by the Factory for this service.
OGSI::GS::init(); #call base class init method - sets up core SDEs
#set some of the service’s SDEs
$OGSI::GS::ServiceDataHash{"ogsi:interface"} .= "<ogsi:interface>Counter</ogsi:interface>";
#the std Grid Service Counter add example
my ($class, $value) = @_;
$count = $count + $value;