ptolemy.domains.ct.kernel
Interface CTStatefulActor
- All Superinterfaces:
- Actor, Executable
- All Known Implementing Classes:
- CTBaseIntegrator
- public interface CTStatefulActor
- extends Actor
An interface for actors that have states. The state of the actor can be
marked (saved). The saved state can be restored so that the actor can go
back to its previously marked state. This feature is used for rolling
back the simulation when needed, which is essential when embedding
CT subsystem in a discrete event system.
The interface defines two methods, markState() and goToMarkedState().
If the markState() method is called, the current state of the actor,
for example values of the local variables, should be remembered. When the
goToMarkedState() method is called after that, the marked states
should be restored.
- Since:
- Ptolemy II 0.2
- Version:
- $Id: CTStatefulActor.java,v 1.21 2004/04/13 03:26:38 cxh Exp $
- Author:
- Jie Liu
- Accepted Rating:
- Proposed Rating:
|
Method Summary |
void |
goToMarkedState()
Implementations of this method should go to the marked state.
|
void |
markState()
Implementations of this method should mark the current state
of the actor. |
goToMarkedState
public void goToMarkedState()
throws IllegalActionException
- Implementations of this method should go to the marked state.
If there's no marked state, throws
an exception.
- Throws:
IllegalActionException - If there were no marked state.
markState
public void markState()
- Implementations of this method should mark the current state
of the actor.