|
|||||||||||
| 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 IMultiplePlanpublic boolean isLowerQualityPlan()
isLowerQualityPlan in interface IMultiplePlanpublic ISinglePlan getBestQualityPlan()
getBestQualityPlan in interface IMultiplePlanpublic boolean destroyBestQualityPlan()
destroyBestQualityPlan in interface IMultiplePlanpublic Plan updateMultiplePlan()
updateMultiplePlan in interface IMultiplePlanpublic AgentID getClientAgentID()
getClientAgentID in interface IMultiplePlanpublic void accept(IPlanVisitor v)
accept in interface Planpublic PlaceID getNextPlaceID()
getNextPlaceID in interface Planpublic java.lang.String toString()
toString in interface Plan
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||