Package ptolemy.component
Class ComponentDirector
- java.lang.Object
-
- ptolemy.component.ComponentDirector
-
- All Implemented Interfaces:
Component
- Direct Known Subclasses:
PtinyOSDirector
public class ComponentDirector extends java.lang.Object implements Component
FIXME- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Yang Zhao and Edward A. Lee
- Pt.AcceptedRating:
- red (davisj)
- Pt.ProposedRating:
- yellow (ellen_zh)
-
-
Constructor Summary
Constructors Constructor Description ComponentDirector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize()Initialize the component.voidpreinitialize()Preinitialize the component.voidrun()Execute the component.voidwrapup()Wrap up an execution.
-
-
-
Method Detail
-
initialize
public void initialize() throws IllegalActionExceptionInitialize the component. This is invoked once after preinitialize() and again whenever the component needs to be reinitialized.- Specified by:
initializein interfaceComponent- Throws:
IllegalActionException- If initialization cannot be completed.
-
preinitialize
public void preinitialize() throws IllegalActionExceptionPreinitialize the component. This is invoked exactly once per execution of a model, before any other methods in this interface are invoked.- Specified by:
preinitializein interfaceComponent- Throws:
IllegalActionException- If preinitialization cannot be completed.
-
run
public void run() throws IllegalActionExceptionExecute the component. This is invoked after preinitialize() and initialize(), and may be invoked repeatedly.- Specified by:
runin interfaceComponent- Throws:
IllegalActionException- If the run cannot be completed.
-
wrapup
public void wrapup() throws IllegalActionExceptionWrap up an execution. This method is invoked exactly once per execution of a model. It finalizes an execution, typically closing files, displaying final results, etc. If any other method from this interface is invoked after this, it must begin with preinitialize().- Specified by:
wrapupin interfaceComponent- Throws:
IllegalActionException- If wrapup fails.
-
-