com.ptc.windchill.upgrade.util.fsm
Interface Condition

All Known Implementing Classes:
AbstractStateWithThreadedWork.IsStateWithThreadedWorkDone, AbstractStateWithThreadedWork.IsStateWithThreadedWorkDone, AbstractStateWithThreadedWork.IsThreadedWorkRunningAndNotCanceled, AbstractStateWithThreadedWork.IsThreadedWorkRunningAndNotCanceled, AbstractStateWithThreadedWork.WasThreadedWorkOutcomeSuccessful, AbstractStateWithThreadedWork.WasThreadedWorkOutcomeSuccessful, AddConstraintsCompleted.AddConstraintsCanceled, AddConstraintsCompleted.AllowNextStep, AdvanceToNextStep.DetermineFirstStateForNextStep, Always, And, ApplicationStateMachine.ExpressModeSet, ApplicationStateMachine.NonExpressModeSet, CompareSchemaCompleted.AllowNextStep, CompareSchemaCompleted.CompareSchemaCanceled, ConfirmVersionState.UpgradePreviouslyCompleted, ExampleApplication.Restarted, Not, Or, PhaseCompleted.PhaseCanceled, PhaseCompleted.ReportNumberOfFailures, ProgressViewState.UpdateRunnerReportExists, ReportError.CheckAdministratorNameValid, RetrievingState.ApplicabilitySize, UpgradeSchemaCompleted.AllowNextStep, UpgradeSchemaCompleted.UpgradeSchemaCanceled, UpgradeToolStateMachine.ConfirmQueuesCleared, UpgradeToolStateMachine.DbCorrect, UpgradeToolStateMachine.ExpressModeSet, UpgradeToolStateMachine.NonExpressModeSet, UpgradeToolStateMachine.VersionConfirmed, VerifySolutionsInstalled.ContainsNoSolutions, VerifySolutionsInstalled.ContainsTooManySolutions

public interface Condition

Conditions are invoked by a state machine to determine which actions should be invoked upon events. A Condition's responsibility in this process is to return a boolean result based on the current state of a StateMachine.

See Also:
StateMachine

Field Summary
static Condition ALWAYS
          A condition that always evaluates to true.
 
Method Summary
 boolean evaluate(State state)
          Implementations should return a boolean result based on the state of the provided State or its StateMachine.
 

Field Detail

ALWAYS

public static final Condition ALWAYS
A condition that always evaluates to true.

Method Detail

evaluate

public boolean evaluate(State state)
                 throws Exception
Implementations should return a boolean result based on the state of the provided State or its StateMachine.

Throws:
Exception