com.ptc.windchill.upgrade.tool
Class AdvanceToNextStep.DetermineFirstStateForNextStep

java.lang.Object
  extended bycom.ptc.windchill.upgrade.tool.AdvanceToNextStep.DetermineFirstStateForNextStep
All Implemented Interfaces:
Condition
Enclosing class:
AdvanceToNextStep

public static class AdvanceToNextStep.DetermineFirstStateForNextStep
extends Object
implements Condition


Field Summary
(package private)  UpgradeStep step_
           
 
Fields inherited from interface com.ptc.windchill.upgrade.util.fsm.Condition
ALWAYS
 
Constructor Summary
AdvanceToNextStep.DetermineFirstStateForNextStep(UpgradeStep step)
          Creates a new DetermineFirstStateForNextStep object.
 
Method Summary
 boolean evaluate(State state)
          A method required by all classes that implement Condition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

step_

UpgradeStep step_
Constructor Detail

AdvanceToNextStep.DetermineFirstStateForNextStep

public AdvanceToNextStep.DetermineFirstStateForNextStep(UpgradeStep step)
Creates a new DetermineFirstStateForNextStep object.

Parameters:
step - UpgradeToolStateMachineDefinition sends the argument in.
Method Detail

evaluate

public final boolean evaluate(State state)
A method required by all classes that implement Condition. This method determines if the step sent in by UpgradeToolStateMachineDefinition matches the step retrieved by the getAdvancdStep() method. If step_ and next are equal, it will advance to the initial screen of that step.

Specified by:
evaluate in interface Condition
Parameters:
state - Verifies that it is an instance of AdvanceToNextStep
Returns:
true or false