|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Initializable
This interface defines a subset of the action methods for initialization and wrapup. It should be implemented by objects that do not need to invoked during runtime, but should be invoked in preinitialize() (exactly once, prior to type resolution), in initialize() (which could happen repeatedly during execution), or wrapup() (exacty once, at the end of execution).
Red (cxh) |
Green (eal) |
Method Summary | |
---|---|
void |
addInitializable(Initializable initializable)
Add the specified object to the list of objects whose preinitialize(), initialize(), and wrapup() methods should be invoked upon invocation of the corresponding methods of this object. |
void |
initialize()
Begin execution of the actor. |
void |
preinitialize()
This method should be invoked exactly once per execution of a model, before any of these other methods are invoked. |
void |
removeInitializable(Initializable initializable)
Remove the specified object from the list of objects whose preinitialize(), initialize(), and wrapup() methods should be invoked upon invocation of the corresponding methods of this object. |
void |
wrapup()
This method is invoked exactly once per execution of an application. |
Method Detail |
---|
void addInitializable(Initializable initializable)
initializable
- The object whose methods should be invoked.removeInitializable(Initializable)
void initialize() throws IllegalActionException
IllegalActionException
- If execution is not permitted.void preinitialize() throws IllegalActionException
IllegalActionException
- If initializing is not permitted.void removeInitializable(Initializable initializable)
initializable
- The object whose methods should no longer be invoked.addInitializable(Initializable)
void wrapup() throws IllegalActionException
IllegalActionException
- If wrapup is not permitted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |