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, waitgetName, isLegalActor, setupActorfire, postfire, prefireinitialize, preinitializepublic void addInitializable(Initializable initializable)
addInitializable in interface Initializableinitializable - The object whose methods should be invoked.removeInitializable(Initializable)public boolean isFireFunctional()
isFireFunctional in interface Executablepublic boolean isStrict()
isStrict in interface Executablepublic int iterate(int i)
throws IllegalActionException
ExecutableAn 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 Executablei - 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 Initializableinitializable - The object whose methods should be invoked.addInitializable(Initializable)public void stop()
Executablestop in interface Executablepublic void stopFire()
ExecutablestopFire in interface Executablepublic void terminate()
ExecutableAfter 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 Executablepublic void wrapup()
throws IllegalActionException
Initializablewrapup in interface InitializableIllegalActionException - If wrapup is not permitted.