| net.sourceforge.groboutils.mbtf.v1.IPathHistory
All known Subclasses: net.sourceforge.groboutils.mbtf.v1.engine.PathHistoryImpl,
IPathHistory | public interface IPathHistory (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:24 $ 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. | public IPathHistory | copy() Returns a copy of this instance. | public int | getErrorCount() Returns the total number of errors (halts, failures, and errors)
registered during validation and transitions. |
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.
|
copy | public IPathHistory copy()(Code) | | Returns a copy of this instance. The copied instance must not change
when the parent copy changes.
|
getErrorCount | public int getErrorCount()(Code) | | Returns the total number of errors (halts, failures, and errors)
registered during validation and transitions.
|
|
|