|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.kernel.util.NamedObj ptolemy.codegen.kernel.CodeGeneratorHelper ptolemy.codegen.actor.Director ptolemy.codegen.c.domains.fsm.kernel.FSMDirector ptolemy.codegen.c.targets.openRTOS.domains.fsm.kernel.FSMDirector
public class FSMDirector
Code generator helper associated with the OpenRTOS FSMDirector class. This class is also associated with a code generator.
Red (sssf) |
Red (sssf) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.codegen.kernel.CodeGeneratorHelper |
---|
CodeGeneratorHelper.Channel, CodeGeneratorHelper.VariableScope |
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Field Summary |
---|
Fields inherited from class ptolemy.codegen.actor.Director |
---|
_director, _eol, _INDENT1, _INDENT2, _INDENT3, _INDENT4 |
Fields inherited from class ptolemy.codegen.kernel.CodeGeneratorHelper |
---|
_codeGenerator, _codeStream, _parseTreeCodeGenerator, _portConversions, _referencedParameters |
Fields inherited from class ptolemy.kernel.util.NamedObj |
---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Constructor Summary | |
---|---|
FSMDirector(FSMDirector fsmDirector)
Construct the code generator helper associated with the given FSMDirector. |
Method Summary | |
---|---|
private java.lang.String |
_generateActorCode()
Generate code for all the actors associated with the given FSMDirector. |
protected void |
_generateRefinementCode(java.lang.StringBuffer code)
Generate code for the firing of refinements. |
private java.lang.String |
_getActorName(Actor actor)
Generates the name of an actor |
java.lang.String |
generateFireFunctionCode()
Generate The fire function code. |
java.lang.String |
generatePreinitializeCode()
Generate the preinitialization code for the director. |
void |
generateTransferOutputsCode(IOPort outputPort,
java.lang.StringBuffer code)
Generate the code to transfer outputs from a port to its receiver. |
double |
getWCET()
Return the worst case execution time (WCET) seen by this director. |
Methods inherited from class ptolemy.codegen.c.domains.fsm.kernel.FSMDirector |
---|
generateFireCode |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FSMDirector(FSMDirector fsmDirector)
fsmDirector
- The associated
ptolemy.domains.fsm.kernel.FSMDirectorMethod Detail |
---|
public java.lang.String generateFireFunctionCode() throws IllegalActionException
generateFireFunctionCode
in interface ActorCodeGenerator
generateFireFunctionCode
in class FSMDirector
IllegalActionException
- If thrown while generating fire code.public java.lang.String generatePreinitializeCode() throws IllegalActionException
generatePreinitializeCode
in interface ActorCodeGenerator
generatePreinitializeCode
in class Director
IllegalActionException
- If thrown by the superclass or thrown
while generating code for the director.public void generateTransferOutputsCode(IOPort outputPort, java.lang.StringBuffer code) throws IllegalActionException
generateTransferOutputsCode
in class Director
outputPort
- - the port generating outputcode
- - StringBuffer the generated code should appended to.
IllegalActionException
- If thrown by the superclass.public double getWCET() throws IllegalActionException
getWCET
in class Director
IllegalActionException
- If there is a problem determining
the WCET or a problem accessing the model.protected void _generateRefinementCode(java.lang.StringBuffer code) throws IllegalActionException
_generateRefinementCode
in class FSMDirector
code
- The string buffer that the generated code is appended to.
IllegalActionException
- If the helper associated with
an actor throws it while generating fire code for the actor.private java.lang.String _generateActorCode() throws IllegalActionException
IllegalActionException
- If throw while accessing the model.private java.lang.String _getActorName(Actor actor)
actor
- - The actor whose name is to be determined
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |