com.ptc.windchill.upgrade.tool
Class PhaseCompleted.ReportNumberOfFailures

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

public static class PhaseCompleted.ReportNumberOfFailures
extends Object
implements Condition

An inner class used by UpgradeToolStateMachineDefinition to determine the next state or which buttons to enable.


Field Summary
 
Fields inherited from interface com.ptc.windchill.upgrade.util.fsm.Condition
ALWAYS
 
Constructor Summary
PhaseCompleted.ReportNumberOfFailures()
          Creates a new ReportNumberOfFailures object.
 
Method Summary
 boolean evaluate(State state)
          If true is returned a message will be displayed of the step failing and the "Restart" and "Exit" button will be enabled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhaseCompleted.ReportNumberOfFailures

public PhaseCompleted.ReportNumberOfFailures()
Creates a new ReportNumberOfFailures object.

Method Detail

evaluate

public final boolean evaluate(State state)
If true is returned a message will be displayed of the step failing and the "Restart" and "Exit" button will be enabled. This is regardless of the user being in Express Mode or Non-Express Mode. If false is returned and the user is in ExpressMode it will proceed to the initial state of the next step, if the user is in non-express mode, the "Continue" and "Cancel" button will be enabled.

Specified by:
evaluate in interface Condition
Parameters:
state - State
Returns:
ret boolean