ix.iplan
Class SimplePlanEvaluation

java.lang.Object
  extended by ix.iplan.SimplePlanEvaluation
All Implemented Interfaces:
PlanEvaluation

public class SimplePlanEvaluation
extends java.lang.Object
implements PlanEvaluation


Constructor Summary
SimplePlanEvaluation(int i)
           
SimplePlanEvaluation(java.lang.Object value)
           
 
Method Summary
 void detailsRequested()
          Tells the evaluation that the user has requested more information.
 java.lang.Object getValue()
          Returns the current value of this evaluation.
 boolean hasDetails()
          Indicates whether or not more information is available if the used requests it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePlanEvaluation

public SimplePlanEvaluation(int i)

SimplePlanEvaluation

public SimplePlanEvaluation(java.lang.Object value)
Method Detail

getValue

public java.lang.Object getValue()
Description copied from interface: PlanEvaluation
Returns the current value of this evaluation. Note that the value may change after the user requests more information.

Specified by:
getValue in interface PlanEvaluation
See Also:
PlanEvaluation.detailsRequested()

hasDetails

public boolean hasDetails()
Description copied from interface: PlanEvaluation
Indicates whether or not more information is available if the used requests it.

Specified by:
hasDetails in interface PlanEvaluation
See Also:
PlanEvaluation.detailsRequested()

detailsRequested

public void detailsRequested()
Description copied from interface: PlanEvaluation
Tells the evaluation that the user has requested more information. For some evaluations, the work will not be done until this method is called. Until then, the value returned by PlanEvaluation.getValue() will just be a place-holder that indicates that more information is available. This method will then typically change that value to show the real result of the evalutaion.

It is recommended that any evaluations that require a substantial amount of computation be handled in that delayed, "when requested" fashion.

Specified by:
detailsRequested in interface PlanEvaluation
See Also:
PlanEvaluation.hasDetails()