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

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
mdt_serverI, mdt_serverI_Stub

public interface MDTCentralizer
extends java.rmi.Remote

Version:
1.0
Author:
Charles-Philip Bentley

Method Summary
 void directSetToBeep(Id id)
          JMi va etre fache pasque on a change une interface...
 Status[] getAllStatus()
          Returns a snapshot of the Status of all emergency vehicules
 Status getStatus(Id id)
          Returns the Status of object with Id id
 void sendIncidentToRemote(Incident i)
          Send Incident info.
 

Method Detail

getAllStatus

public Status[] getAllStatus()
                      throws java.rmi.RemoteException
Returns a snapshot of the Status of all emergency vehicules

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

getStatus

public Status getStatus(Id id)
                 throws java.rmi.RemoteException
Returns the Status of object with Id id

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

sendIncidentToRemote

public void sendIncidentToRemote(Incident i)
                          throws ConnectionToObjectException,
                                 VehiculeAssociationException,
                                 java.rmi.RemoteException
Send Incident info. Routing info is inside the Incident objet

Parameters:
i - the Incident
Pre:
a Incident object that is associated with a known Ambulance. Ambulance Status is free
Throws:
ConnectionToObjectException - if there was physical problem during the connection to the remote Vehicule (via MDT)
VehiculeAssociationException - if the Vehicule associated with Incident i is no more a valid vehicule Exception will tell the reason. Probably because current Status is not "free"
java.rmi.RemoteException
Post:
The remote object associated with Incident i has recieved the Data

directSetToBeep

public void directSetToBeep(Id id)
                     throws java.rmi.RemoteException
JMi va etre fache pasque on a change une interface...

java.rmi.RemoteException

Logo

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