org.cagrid.installer.steps
Class AndCondition

java.lang.Object
  extended by org.cagrid.installer.steps.AndCondition
All Implemented Interfaces:
Condition

public class AndCondition
extends java.lang.Object
implements Condition

Author:
Joshua Phillips

Constructor Summary
AndCondition(Condition... conditions)
           
 
Method Summary
 boolean evaluate(WizardModel model)
          Called to determine when the path being added using BranchingPath.addBranch(org.pietschy.wizard.models.Path, org.pietschy.wizard.models.Condition) should be traversed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndCondition

public AndCondition(Condition... conditions)
Method Detail

evaluate

public boolean evaluate(WizardModel model)
Description copied from interface: Condition
Called to determine when the path being added using BranchingPath.addBranch(org.pietschy.wizard.models.Path, org.pietschy.wizard.models.Condition) should be traversed. The selector is passed the current WizardModel to assist with the decision.

Specified by:
evaluate in interface Condition
Parameters:
model - the WizardModel the condition should use.
Returns:
true if the .