public class FSMDirector extends FSMDirector
Red (sssf) |
Red (sssf) |
NamedProgramCodeGeneratorAdapter.VariableScope
ProgramCodeGeneratorAdapter.Channel
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_sanitizedDirectorName
The sanitized name of the director.
|
_component, _defaultBlocks, _eol, _templateParser
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
FSMDirector(FSMDirector component)
Construct the code generator helper associated
with the given modal controller.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateConstructorCode()
Generate the constructor code for the specified director.
|
java.lang.String |
generateFireFunctionCode()
Generate the code for the firing of this director.
|
java.lang.String |
generateFunctionsDeclaration()
Generate The functions' declaration code for this director.
|
java.lang.String |
generateInitializeFunctionCode()
Generate the initialize function code for the associated FSM director.
|
java.lang.String |
generateMainLoop()
Generate a main loop for an execution under the control of
this FSM director.
|
java.lang.String |
generatePostfireCode()
Generate the postfire code of the associated composite actor.
|
java.lang.String |
generatePrefireCode()
Generate the prefire code of the associated composite actor.
|
java.lang.String |
generatePreinitializeCode()
Generate the preinitialize code for this director.
|
java.lang.String |
generatePreinitializeMethodBodyCode()
Generate the preinitialize code for this director.
|
java.lang.String |
generateTransferInputCode()
Generate the code for the transfer of input values inside the modal model.
|
java.lang.String |
generateTransferOutputCode()
Generate the code for the transfer of output values inside the modal model.
|
java.lang.String |
generateVariableDeclaration()
We override the super method, because the declaration
of the variables are in the actor's files.
|
java.lang.String |
getSanitizedDirectorName()
Returns the sanitized name of this director adapter.
|
generateFireCode, generateTransferInputsCode, generateTransferOutputsCode, getReference
_ceilToPowerOfTwo, _generateVariableDeclaration, _generateVariableInitialization, _getParameter, generateCodeForGet, generateCodeForSend, generateInitializeCode, generateModeTransitionCode, generateTransferInputsCode, generateTransferOutputsCode, generateVariableDeclaration, generateVariableInitialization, generateVariableInitialization, generateWrapupCode, getComponent, getIncludeDirectories, getLibraries, getLibraryDirectories, getModifiedVariables, getParameter
_generateFireCode, _generateTypeConvertStatement, analyzeTypeConvert, copyFilesToCodeDirectory, generateSimpleName, generateTypeConvertFireCode, generateTypeConvertFireCode, getAddTimeString, getBufferSize, getBufferSize, getDeclareSharedCode, getDefaultBlocks, getFireFunctionParameters, getHeaderFiles, getName, getParameterValue, getReference, getReference, getSharedCode, getSinkChannels, getSourceTimeString, getTimeSourcePortName, getTypeConvertChannels, getTypeConvertReference, getTypeConvertSinkChannels, setupAdapter, targetType
_generateBlockByName, getAdapter, getCodeGenerator, getTemplateParser, processCode, setCodeGenerator, setTemplateParser, toString
createDecoratorAttributes, generateName
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getContainedObject, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateExistence, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getContainer, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setName, setPersistent, setSource, sortContainedObjects, toplevel, uniqueName, validateSettables, workspace
protected java.lang.String _sanitizedDirectorName
public FSMDirector(FSMDirector component)
component
- The associated component.public java.lang.String generateConstructorCode() throws IllegalActionException
generateConstructorCode
in class Director
IllegalActionException
- Not thrown in this base class.public java.lang.String generateFunctionsDeclaration() throws IllegalActionException
IllegalActionException
- If thrown while generating code.public java.lang.String generateInitializeFunctionCode() throws IllegalActionException
IllegalActionException
- If the adapter associated with
an actor throws it while generating initialize code for the actor.public java.lang.String generateMainLoop() throws IllegalActionException
generateMainLoop
in class NamedProgramCodeGeneratorAdapter
IllegalActionException
- If something goes wrong.public java.lang.String generateFireFunctionCode() throws IllegalActionException
generateFireFunctionCode
in class Director
IllegalActionException
- If the adapter associated with
an actor throws it while generating fire code for the actor.public java.lang.String generatePostfireCode() throws IllegalActionException
generatePostfireCode
in class Director
IllegalActionException
- If the adapter associated with
an actor throws it while generating postfire code for the actorpublic java.lang.String generatePrefireCode() throws IllegalActionException
generatePrefireCode
in class NamedProgramCodeGeneratorAdapter
IllegalActionException
- It should never happenpublic java.lang.String generatePreinitializeCode() throws IllegalActionException
generatePreinitializeCode
in class Director
IllegalActionException
- If getting the adapter fails,
or if generating the preinitialize code for a adapter fails,
or if there is a problem getting the buffer size of a port.public java.lang.String generatePreinitializeMethodBodyCode() throws IllegalActionException
generatePreinitializeMethodBodyCode
in class Director
IllegalActionException
- If getting the adapter fails,
or if generating the preinitialize code for a adapter fails,
or if there is a problem getting the buffer size of a port.public java.lang.String generateTransferInputCode() throws IllegalActionException
IllegalActionException
- If the adapter associated with
an actor throws it while generating code for the actor.public java.lang.String generateTransferOutputCode() throws IllegalActionException
IllegalActionException
- If the adapter associated with
an actor throws it while generating code for the actor.public java.lang.String generateVariableDeclaration() throws IllegalActionException
generateVariableDeclaration
in class Director
IllegalActionException
- If the adapter class for the model
director cannot be found.public java.lang.String getSanitizedDirectorName()