|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--cad.simcad.worldsimulator.objects.parts.MDT
This Object belongs to a SimAmbulance. It creates a rmi service and connect to a rmi service called mdt_service
Field Summary | |
static java.lang.String |
MDT_PORT
|
static java.lang.String |
MDT_REMOTE_PORT
|
static int |
PERIOD
|
static java.lang.String |
PORT
Port used by the MDT server |
static java.lang.String |
SERVER
|
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
MDT(EmergencyVehicule ev)
Creates a new instance of MDT |
|
MDT(SimAmbulance sa,
EmergencyVehicule ev)
Creates a new instance of MDT |
Method Summary | |
void |
beep()
Alert the Team that a new Mission has arrived |
static MDTSim |
createMDT(SimAmbulance sa,
EmergencyVehicule ev)
|
java.lang.String |
getDisplayableString()
Returns what a MDT User should see on the screen |
Status |
getMDTStatus()
Returns the status of the simulated MDT |
void |
receiveIncident(Incident incident)
Recieve an Incident. |
static void |
registerToRegistry(java.lang.String name,
java.rmi.Remote obj,
boolean create)
Register mdt_serverI object with the RMI registry. |
void |
setMDTStatus(Status newStatus)
Set the status for the simulated MDT |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static java.lang.String SERVER
public static java.lang.String MDT_PORT
public static java.lang.String MDT_REMOTE_PORT
public static java.lang.String PORT
public static int PERIOD
Constructor Detail |
public MDT(EmergencyVehicule ev) throws java.rmi.RemoteException
public MDT(SimAmbulance sa, EmergencyVehicule ev) throws java.rmi.RemoteException
Method Detail |
public static void registerToRegistry(java.lang.String name, java.rmi.Remote obj, boolean create) throws java.rmi.RemoteException, java.net.MalformedURLException
name
- - name identifying the service in the RMI registrycreate
- - create local registry if necessary
java.rmi.RemoteException
- if cannot be exported or bound to RMI registry
java.net.MalformedURLException
- if name cannot be used to construct a valid URL
java.lang.IllegalArgumentException
- if null passed as namepublic Status getMDTStatus()
getMDTStatus
in interface MDTSim
public void receiveIncident(Incident incident)
receiveIncident
in interface MDTSim
public void setMDTStatus(Status newStatus)
setMDTStatus
in interface MDTSim
public java.lang.String getDisplayableString()
MDTSim
getDisplayableString
in interface MDTSim
public void beep()
public static MDTSim createMDT(SimAmbulance sa, EmergencyVehicule ev) throws java.rmi.RemoteException
java.rmi.RemoteException
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |