| java.lang.Object net.sourceforge.groboutils.mbtf.v1.engine.PathHistoryImpl
PathHistoryImpl | public class PathHistoryImpl implements IPathHistory,Cloneable(Code) | | Records the states and transition history during a path traversal.
The instance can be cloned for the cases of errors and warnings needing to
store the path history when they occured. The instance should also support
a toString() method for easy debugging and logging.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2003/02/10 22:52:26 $ since: June 12, 2002 |
Method Summary | |
public void | addState(IState s) When the current state changes, add the new state here. | public void | addTransition(ITransition t) When a transition is about to occur, it should be added here. | public void | addValidate(IValidate val, IState owningState, IErrors errors) After a validation call, the error results should be added here. | public void | addValidate(IValidate val, ITransition owningTransition, IErrors errors) After a validation call, the error results should be added here. | protected Object | clone() | public IPathHistory | copy() | public int | getErrorCount() Returns the total number of errors (halts, failures, and errors)
registered during validation and transitions. | public String | toString() |
addState | public void addState(IState s)(Code) | | When the current state changes, add the new state here. This should
be called for the start state, and once at the end of every successful
transition.
|
addTransition | public void addTransition(ITransition t)(Code) | | When a transition is about to occur, it should be added here.
|
addValidate | public void addValidate(IValidate val, IState owningState, IErrors errors)(Code) | | After a validation call, the error results should be added here.
|
addValidate | public void addValidate(IValidate val, ITransition owningTransition, IErrors errors)(Code) | | After a validation call, the error results should be added here.
|
getErrorCount | public int getErrorCount()(Code) | | Returns the total number of errors (halts, failures, and errors)
registered during validation and transitions.
|
|
|