Crisis Grid

The crisis Grid works as follows.
The steps in execution are as follows

  1. The MapService sends the spatial information to the Compute Service
  2. The ComputeService requests the RainFallPublisher to send the next rainfall reading
  3. The RainfallPublisher (e.g. a sensor exposed as a webservice) sends the reading
  4. The ComputeService operates the Runoff model and generates the visualization images of the flow model.
  5. The images along with other readings are sent to the Visualizations service. This could be an application, servlet, logging service etc..

Script

	mapService    = "org.hpsearch.demo.CrisisGridServices.MapService";

	// should use the following for discovery
	// mapServiceLoc = NBDiscover.discover(mapService);
	mapServiceLoc = "http://156.56.104.176:9090/axis/services/WSSConnector?wsdl";
	mapSource    = new WebServiceHandler(mapService);
	mapSource.setEndPointURI(mapServiceLoc);

	rainFallPublisher    = "org.hpsearch.demo.CrisisGridServices.RainFallPublisher";

	// should use the following for discovery
	// rainFallPublisherLoc = NBDiscover.discover(rainFallPublisher);
	rainFallPublisherLoc = "http://156.56.104.176:6060/axis/services/WSSConnector?wsdl";
	rainFall             = new WebServiceHandler(rainFallPublisher);
	rainFall.setEndPointURI(rainFallPublisherLoc);

	computeService     = "org.hpsearch.demo.CrisisGridServices.ComputeService";

	// should use the following for discovery
	// computeServiceLoc = NBDiscover.discover(computeService);
	computeServiceLoc  = "http://156.56.104.176:7070/axis/services/WSSConnector?wsdl";
	compute            = new WebServiceHandler(computeService);
	compute.setEndPointURI(computeServiceLoc);

	crisisGridFlow = new Flow();
	crisisGridFlow.addComponents(compute);
	crisisGridFlow.addStartActivities(mapSource, rainFall);
	crisisGridFlow.start();
    

Services

  1. ComputeService
  2. MapService
  3. RainFallPublisher
  4. VisualizationClient