public class CSP extends AbstractDDI
COMPLETED, NOT_READY, STOP_ITERATING
Constructor and Description |
---|
CSP(TypedAtomicActor ptActor,
caltrop.interpreter.ast.Actor actor,
caltrop.interpreter.Context context,
caltrop.interpreter.environment.Environment env) |
Modifier and Type | Method and Description |
---|---|
void |
fire()
Fire the actor.
|
java.lang.String |
getName()
Get the name of the domain that this DDI implements.
|
void |
initialize()
Begin execution of the actor.
|
boolean |
isLegalActor()
Perform static checking on the actor, ensuring its validity in
a given domain.
|
boolean |
postfire()
This method should be invoked once per iteration, after the last
invocation of fire() in that iteration.
|
boolean |
prefire()
This method should be invoked prior to each invocation of fire().
|
void |
preinitialize()
This method should be invoked exactly once per execution
of a model, before any of these other methods are invoked.
|
void |
setupActor()
Perform any domain dependent setup.
|
addInitializable, isFireFunctional, isStrict, iterate, removeInitializable, stop, stopFire, terminate, wrapup
public CSP(TypedAtomicActor ptActor, caltrop.interpreter.ast.Actor actor, caltrop.interpreter.Context context, caltrop.interpreter.environment.Environment env)
public boolean isLegalActor()
DDI
public void setupActor()
DDI
public java.lang.String getName()
DDI
public void fire() throws IllegalActionException
Executable
IllegalActionException
- If firing is not permitted.public void initialize() throws IllegalActionException
Initializable
IllegalActionException
- If execution is not permitted.public boolean postfire() throws IllegalActionException
Executable
IllegalActionException
- If postfiring is not permitted.public boolean prefire() throws IllegalActionException
Executable
IllegalActionException
- If prefiring is not permitted.public void preinitialize() throws IllegalActionException
Initializable
IllegalActionException
- If initializing is not permitted.