public abstract class AbstractDDI extends java.lang.Object implements DDI
Red (cxh) |
Red (cxh) |
COMPLETED, NOT_READY, STOP_ITERATING
Constructor and Description |
---|
AbstractDDI() |
Modifier and Type | Method and Description |
---|---|
void |
addInitializable(Initializable initializable)
Do nothing.
|
boolean |
isFireFunctional()
Return true.
|
boolean |
isStrict()
Return true in this base class.
|
int |
iterate(int i)
Invoke a specified number of iterations of the actor.
|
void |
removeInitializable(Initializable initializable)
Do nothing.
|
void |
stop()
Request that execution of this Executable stop as soon
as possible.
|
void |
stopFire()
Request that execution of the current iteration complete.
|
void |
terminate()
Terminate any currently executing model with extreme prejudice.
|
void |
wrapup()
This method is invoked exactly once per execution
of an application.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, isLegalActor, setupActor
fire, postfire, prefire
initialize, preinitialize
public void addInitializable(Initializable initializable)
addInitializable
in interface Initializable
initializable
- The object whose methods should be invoked.removeInitializable(Initializable)
public boolean isFireFunctional()
isFireFunctional
in interface Executable
public boolean isStrict()
isStrict
in interface Executable
public int iterate(int i) throws IllegalActionException
Executable
An implementation of this method is not required to actually invoke prefire(), fire(), and postfire(). An implementation of this method must, however, perform the equivalent operations.
Note that this method for iterating an actor should be used only in domains where a single invocation of prefire() and fire() is sufficient in an iteration.
iterate
in interface Executable
i
- The number of iterations to perform.IllegalActionException
- If iterating is not
permitted, or if prefire(), fire(), or postfire() throw it.public void removeInitializable(Initializable initializable)
removeInitializable
in interface Initializable
initializable
- The object whose methods should be invoked.addInitializable(Initializable)
public void stop()
Executable
stop
in interface Executable
public void stopFire()
Executable
stopFire
in interface Executable
public void terminate()
Executable
After this method completes, all resources in use should be released and any sub-threads should be killed. However, a consistent state is not guaranteed. The topology should probably be recreated before attempting any further operations. This method should not be synchronized because it must happen as soon as possible, no matter what.
terminate
in interface Executable
public void wrapup() throws IllegalActionException
Initializable
wrapup
in interface Initializable
IllegalActionException
- If wrapup is not permitted.