cad.simcad.objectserver.spec.sim
Interface SimAmbulance

All Superinterfaces:
java.io.Serializable, SimObject
All Known Implementing Classes:
Ambulance

public interface SimAmbulance
extends SimObject

Interface for Simulated Ambulance

Author:
Charles-Philip Bentley

Method Summary
 boolean getAutoProcess()
          Returns true if Ambulance process incidents automatically
 EmergencyVehicule getEmergencyVehicule()
          Returns the EmergencyVehicule for this Ambulance
 GPSSim getGPSSim()
          Returns the simulated GPS of this ambulance
 MDTSim getMDTSim()
          Returns the simulated MDT of this ambulance
 int getVelocity()
          Here the velocity of an object can be asked.
 void processIndicent(Incident p)
          Ask the SimAmbulance to process an Incident
 void processIndicentPlace()
          Ambulance moves to the Place of the Incident if it has one in cache
 void setAutoProcess(boolean b)
          Ask the SimAmbulance to process an Incident automatically or not
 void setGPSSim(GPSSim gps)
          Set the simulated GPS of this ambulance
 void setMDTSim(MDTSim mdt)
          Set the simulated MDT of this ambulance
 void setVelocity(int value)
          To change the velocity of an object.
 
Methods inherited from interface cad.simcad.objectserver.spec.sim.SimObject
getBoundingCircleRadius, getClassName, getCurrentPathPlace, getHeight, getId, getName, getObjectType, getSerialNumber, getStateId, getWidth, setStateId, stopObject, takeTurn
 

Method Detail

setVelocity

public void setVelocity(int value)
To change the velocity of an object.

Parameters:
value - the new value for the velocity
Pre:
an integer value, ranging from [0,100]
Post:
the velocity field of the object is updated with value given in parameter

getVelocity

public int getVelocity()
Here the velocity of an object can be asked.

Pre:
-
Returns:
an integer value, ranging from [0,100]
Post:
-

getMDTSim

public MDTSim getMDTSim()
Returns the simulated MDT of this ambulance

Pre:
-
Returns:
a MDTSim object
Post:
-

getGPSSim

public GPSSim getGPSSim()
Returns the simulated GPS of this ambulance

Pre:
-
Returns:
a MDTSim object
Post:
-

setGPSSim

public void setGPSSim(GPSSim gps)
Set the simulated GPS of this ambulance

Pre:
-
Post:
-

setMDTSim

public void setMDTSim(MDTSim mdt)
Set the simulated MDT of this ambulance

Pre:
-
Post:
-

getEmergencyVehicule

public EmergencyVehicule getEmergencyVehicule()
Returns the EmergencyVehicule for this Ambulance


processIndicent

public void processIndicent(Incident p)
Ask the SimAmbulance to process an Incident

Pre:
-
Post:
-

setAutoProcess

public void setAutoProcess(boolean b)
Ask the SimAmbulance to process an Incident automatically or not

Pre:
-
Post:
-

getAutoProcess

public boolean getAutoProcess()
Returns true if Ambulance process incidents automatically

Pre:
-
Returns:
boolean value
Post:
true or false depending

processIndicentPlace

public void processIndicentPlace()
Ambulance moves to the Place of the Incident if it has one in cache

Pre:
-
Returns:
boolean value
Post:
the Ambulance moves to the Place of the Incident if it has one in cache

Logo

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