cad.simcad.objectserver.spec.cac.common
Interface GPSCentralizer

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
gps_serverI, gps_serverI_Stub

public interface GPSCentralizer
extends java.rmi.Remote

The GPSCentralizer defines the services used by the CAC that the GPSServer entity should implement

Version:
1.0
Author:
Charles-Philip Bentley

Method Summary
 GPSPosition[] getAllGPSPosition()
          Returns a snapshot of the position of all emergency vehicule
 GPSPosition getGPSPosition(Id id)
          Returns the GPS position of object
 

Method Detail

getAllGPSPosition

public GPSPosition[] getAllGPSPosition()
                                throws java.rmi.RemoteException
Returns a snapshot of the position of all emergency vehicule

Pre:
-
Returns:
An array of GPSPosition objects.
java.rmi.RemoteException
Post:
The known GPSPosition qre returned

getGPSPosition

public GPSPosition getGPSPosition(Id id)
                           throws java.rmi.RemoteException
Returns the GPS position of object

Pre:
the id is know by the GPSServer.
Returns:
-GPSPosition object -null of id is not known by the GPSServer
java.rmi.RemoteException
Post:
if id is known, returns the GPSPosition associated with the id Otherwise, the method returns null.

Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be