|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.caltrop.ddi.AbstractDDI
public abstract class AbstractDDI
| Red (cxh) |
| Red (cxh) |
| Field Summary |
|---|
| Fields inherited from interface ptolemy.actor.Executable |
|---|
COMPLETED, NOT_READY, STOP_ITERATING |
| Constructor Summary | |
|---|---|
AbstractDDI()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ptolemy.caltrop.ddi.DDI |
|---|
getName, isLegalActor, setupActor |
| Methods inherited from interface ptolemy.actor.Executable |
|---|
fire, postfire, prefire |
| Methods inherited from interface ptolemy.actor.Initializable |
|---|
initialize, preinitialize |
| Constructor Detail |
|---|
public AbstractDDI()
| Method Detail |
|---|
public 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 Executable
public 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()
Executable
stop in interface Executablepublic void stopFire()
Executable
stopFire 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 Executable
public void wrapup()
throws IllegalActionException
Initializable
wrapup in interface InitializableIllegalActionException - If wrapup is not permitted.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||