|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.codegen.kernel.CodeGeneratorHelper
ptolemy.codegen.actor.Director
ptolemy.codegen.c.domains.fsm.kernel.FSMDirector
ptolemy.codegen.c.domains.fsm.kernel.MultirateFSMDirector
ptolemy.codegen.c.domains.hdf.kernel.HDFFSMDirector
public class HDFFSMDirector
Code generator helper class associated with the HDFFSMDirector class.
HDFFSMDirector
,
Serialized Form
Red (zgang) |
Yellow (cxh) |
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 | |
---|---|
HDFFSMDirector(HDFFSMDirector director)
Construct the code generator helper associated with the given HDFFSMDirector. |
Method Summary | |
---|---|
java.lang.String |
createOffsetVariablesIfNeeded()
Generate code for declaring read and write offset variables if needed. |
java.lang.String |
generateFireCode()
Generate the code for the firing of actors controlled by this director. |
void |
generateModeTransitionCode(java.lang.StringBuffer code)
Generate mode transition code. |
java.lang.String |
generatePreinitializeCode()
Generate the preinitialize code for this director. |
Methods inherited from class ptolemy.codegen.c.domains.fsm.kernel.MultirateFSMDirector |
---|
_createOffsetVariablesIfNeeded, _createOffsetVariablesIfNeeded, _generateInitialTransitionCode, _updateConfigurationNumber, _updatePortBufferSize, generateInitializeCode, generateTransferInputsCode, generateTransferOutputsCode |
Methods inherited from class ptolemy.codegen.c.domains.fsm.kernel.FSMDirector |
---|
_generateRefinementCode, generateFireFunctionCode |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HDFFSMDirector(HDFFSMDirector director)
director
- The associated
ptolemy.domains.hdf.kernel.HDFFSMDirectorMethod Detail |
---|
public java.lang.String createOffsetVariablesIfNeeded() throws IllegalActionException
createOffsetVariablesIfNeeded
in interface ActorCodeGenerator
createOffsetVariablesIfNeeded
in class MultirateFSMDirector
IllegalActionException
- If thrown while creating
offset variables.public java.lang.String generateFireCode() throws IllegalActionException
generateFireCode
in interface ActorCodeGenerator
generateFireCode
in class MultirateFSMDirector
IllegalActionException
- If the helper associated with
an actor throws it while generating fire code for the actor.public void generateModeTransitionCode(java.lang.StringBuffer code) throws IllegalActionException
generateModeTransitionCode
in interface ActorCodeGenerator
generateModeTransitionCode
in class Director
code
- The string buffer that the generated code is appended to.
IllegalActionException
- If the director helper throws it
while generating mode transition code.public java.lang.String generatePreinitializeCode() throws IllegalActionException
generatePreinitializeCode
in interface ActorCodeGenerator
generatePreinitializeCode
in class MultirateFSMDirector
IllegalActionException
- If getting the helper fails,
or if generating the preinitialize code for a helper fails,
or if there is a problem processing the code.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |