|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cad.simcad.main_server.CADAmbulanceChooser
Field Summary | |
protected APSS |
_apss
|
protected IDPathUser[] |
_cache
This is the cache used to removed last found vehicules from new searches By default, we are not looking for the last 3 vehicules |
protected CacMediatorI |
_cacm
|
Constructor Summary | |
CADAmbulanceChooser(CacMediatorI cacm)
|
Method Summary | |
void |
addToCache(IDPathUser pu)
Add the given PathUser to the cache structure |
java.util.Map |
cleanse(java.util.Map m)
Remove PathUser objects values and associated their keys that are in the cache |
void |
flushCache()
Flush the cache of all entries |
java.util.Map |
getAcceptableVehicles()
|
EmergencyVehicule |
getBestVehicule(Incident i)
Returns the best vehicule for the given Incident |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected CacMediatorI _cacm
protected APSS _apss
protected IDPathUser[] _cache
Constructor Detail |
public CADAmbulanceChooser(CacMediatorI cacm)
Method Detail |
public EmergencyVehicule getBestVehicule(Incident i)
getBestVehicule
in interface VehiculeChooser
i
- Incidentpublic void addToCache(IDPathUser pu)
public void flushCache()
public java.util.Map cleanse(java.util.Map m)
public java.util.Map getAcceptableVehicles()
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |