cad.simcad.worldsimulator.world
Class CaCWorld
java.lang.Object
|
+--cad.simcad.worldsimulator.world.MyWorld
|
+--cad.simcad.worldsimulator.world.CaCWorld
- All Implemented Interfaces:
- java.io.Serializable, SimEnvironment, SimWorldCAC
- public class CaCWorld
- extends MyWorld
- implements SimWorldCAC
- Author:
- Administrator
- See Also:
- Serialized Form
Fields inherited from class cad.simcad.worldsimulator.world.MyWorld |
_allObjects, _am, _defaultOwner, _drObEx, _gaiaObjects, _gaiaOwner, _miniMapObjects, _movingObjects, _notMovingObjects, _om, _rndGen, _serial, _sm, _sos, _ss, _sv, _um, selectedObjects |
Methods inherited from class cad.simcad.worldsimulator.world.MyWorld |
addDrawable2DObject, addMovingObject, addOtherObject, addSimulatedObject, addStaticStructure, checkForRoom, createSimObject, createSimObject, getAbstractMap, getDefaultOwner, getGaiaOwner, getMiniMapDrawable2DObjects, getMovingSimulatedObjects, getNotMovingSimulatedBuildings, getObjects, getRandonGenerator, getSimObjectServer, getSimulatedObjects, getSimViewer, getStatServer, getStructureTypesString, getStructureTypesVector, getUnitTypesString, getUnitTypesVector, nextSerial, removeDrawable2DObject, removeMovingObject, removeOtherObject, removeSimulatedObject, removeStaticStructure, setSimViewer, updateObjectPosition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cad.simcad.objectserver.spec.sim.SimEnvironment |
createSimObject, createSimObject, getAbstractMap, getDefaultOwner, getGaiaOwner, getMiniMapDrawable2DObjects, getMovingSimulatedObjects, getNotMovingSimulatedBuildings, getObjects, getRandonGenerator, getSimObjectServer, getSimulatedObjects, getSimViewer, getStatServer, getStructureTypesVector, getUnitTypesVector, nextSerial, removeSimulatedObject, setSimViewer, updateObjectPosition |
CaCWorld
public CaCWorld(AbstractMap am,
SimViewer sv)
- Creates a new instance of CaCWorld
connectToMainServer
public NetworkConnector connectToMainServer()
- Connects to the Main Cac Server using the default hardcoded parameters
- Specified by:
connectToMainServer
in interface SimWorldCAC
- Post:
- return null if connection failed,
returns the NetworkConnector if connection succeded
connectToMainServer
public NetworkConnector connectToMainServer(java.lang.String serverName,
java.lang.String port)
- Connects to the Main Cac Server using the given serverName and port
- Specified by:
connectToMainServer
in interface SimWorldCAC
connectToGPSServer
public GPSConnector connectToGPSServer(java.lang.String serverName,
java.lang.String port)
- Specified by:
connectToGPSServer
in interface SimWorldCAC
connectToGPSServer
public GPSConnector connectToGPSServer()
- Specified by:
connectToGPSServer
in interface SimWorldCAC
connectToMDTServer
public MDTConnector connectToMDTServer(java.lang.String serverName,
java.lang.String port)
- Specified by:
connectToMDTServer
in interface SimWorldCAC
connectToMDTServer
public MDTConnector connectToMDTServer()
- Specified by:
connectToMDTServer
in interface SimWorldCAC
getNetworkConnector
public NetworkConnector getNetworkConnector()
- Specified by:
getNetworkConnector
in interface SimWorldCAC
getGPSConnector
public GPSConnector getGPSConnector()
- Specified by:
getGPSConnector
in interface SimWorldCAC
getMDTConnector
public MDTConnector getMDTConnector()
- Specified by:
getMDTConnector
in interface SimWorldCAC
registerNewEmergencyVehicle
public EmergencyVehicule registerNewEmergencyVehicle()
throws PersistentDataException
- Ask to CAC to register a new EmergencyVehicle in its Persistent Data storage
- Specified by:
registerNewEmergencyVehicle
in interface SimWorldCAC
PersistentDataException
disconnectWorld
public void disconnectWorld()
- Disconnect the World from all network connections
- Specified by:
disconnectWorld
in interface SimWorldCAC
synchronizeMap
public void synchronizeMap()
- Specified by:
synchronizeMap
in interface SimWorldCAC
With the help of www.sourceforge.net and www.info.ucl.ac.be