|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--cad.simcad.main_server.APSSI
2 Possibilities for the implementation : 1- During the creation, we start a new Thread. This thread updates contiuously the internal Map thanks to GPSSrv and MDTSrv 2- Update on demand each time the getMap() method is called
| Field Summary | |
protected GPSCentralizer |
g
|
static java.lang.String |
GPS_SERVER
|
static java.lang.String |
GPS_SERVER_PORT
|
protected MDTCentralizer |
m
|
static java.lang.String |
MDT_SERVER
|
static java.lang.String |
MDT_SERVER_PORT
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
APSSI(CacMediatorI cacm)
|
|
| Method Summary | |
java.util.Map |
getAllFreeVehicles()
Returns a mapping of Ids to GPSPositions Ids correspond to EmergencyVehicule that have a free status |
AbstractMap |
getMap()
Returns an AbstractMap object, the interface to the CityMap with its ambulances on it |
java.util.Map |
getPlaceMappedToFreeUsers()
Returns a mapping of PathPlace to PathUsers Ids correspond to EmergencyVehicule that have a free status |
void |
run()
|
void |
updateMap(AbstractMap am)
update the Map |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static java.lang.String GPS_SERVER
public static java.lang.String MDT_SERVER
public static java.lang.String GPS_SERVER_PORT
public static java.lang.String MDT_SERVER_PORT
protected MDTCentralizer m
protected GPSCentralizer g
| Constructor Detail |
public APSSI(CacMediatorI cacm)
throws java.rmi.RemoteException
| Method Detail |
public AbstractMap getMap()
getMap in interface APSSAbstractMapAbstractMappublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic java.util.Map getAllFreeVehicles()
public java.util.Map getPlaceMappedToFreeUsers()
getPlaceMappedToFreeUsers in interface APSSpublic void updateMap(AbstractMap am)
APSS
updateMap in interface APSS
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||