|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMUM.initService.VectorMultiplePlan
This class implements a choice of plan with different qualities.
Constructor Summary | |
VectorMultiplePlan(ISinglePlan plan)
Costruttore, prende in ingresso un ISingle plan |
Method Summary | |
void |
accept(IPlanVisitor v)
metodo da implementare per il contratto plan |
void |
addPlan(ISinglePlan plan)
Metodo per aggiungere un plan. |
boolean |
destroyBestQualityPlan()
Metodo per eliminare definitivamente il piano con la migliore qualità. |
ISinglePlan |
getBestQualityPlan()
Metodo per acquisire il Plan con la migliore qualità, null se non c'è |
AgentID |
getClientAgentID()
Selettore, ritorna l'agentID del ClientAgent per il quale è stato emesso il plan |
PlaceID |
getNextPlaceID()
return the placeID of the next place to go, null if there isn't |
boolean |
isLowerQualityPlan()
Metodo per verificare l'esistenza di almeno due plan. |
java.lang.String |
toString()
metodo toString |
Plan |
updateMultiplePlan()
Metodo per fare l'update del multiple plan ATTENZIONE: l'invocazione di questo metodo modifica non modifica lo stato interno di questo oggetto, ma crea un nuovo VectorMultiplePlan. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VectorMultiplePlan(ISinglePlan plan)
Method Detail |
public void addPlan(ISinglePlan plan)
addPlan
in interface IMultiplePlan
public boolean isLowerQualityPlan()
isLowerQualityPlan
in interface IMultiplePlan
public ISinglePlan getBestQualityPlan()
getBestQualityPlan
in interface IMultiplePlan
public boolean destroyBestQualityPlan()
destroyBestQualityPlan
in interface IMultiplePlan
public Plan updateMultiplePlan()
updateMultiplePlan
in interface IMultiplePlan
public AgentID getClientAgentID()
getClientAgentID
in interface IMultiplePlan
public void accept(IPlanVisitor v)
accept
in interface Plan
public PlaceID getNextPlaceID()
getNextPlaceID
in interface Plan
public java.lang.String toString()
toString
in interface Plan
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |