public class ModalController extends ModalController
Red (wlc) |
Red (wlc) |
NamedProgramCodeGeneratorAdapter.VariableScope
ProgramCodeGeneratorAdapter.Channel
NamedObj.ContainedObjectsIterator
_eol, _myController
_component, _defaultBlocks, _templateParser
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
ModalController(ModalController component)
Construct the code generator helper associated
with the given modal controller.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
_generateRefinementCode(java.lang.StringBuffer code)
Generate code for the firing of refinements.
|
java.lang.String |
generateFireCode()
Generate the fire code of the associated controller.
|
java.lang.String |
generatePostfireCode()
Generate the postfire code of the associated controller.
|
java.lang.String |
generateVariableDeclaration()
Generate variable declarations for inputs and outputs and parameters.
|
_updateConnectedPortsOffset, _updatePortOffset, generateFireFunctionCode, generatePreinitializeCode, generateTransferInputsCode, generateTransferOutputsCode
_generateFireCode, _generateTypeConvertStatement, analyzeTypeConvert, copyFilesToCodeDirectory, generateInitializeCode, generateMainLoop, generateModeTransitionCode, generatePrefireCode, generatePreinitializeMethodBodyCode, generateSimpleName, generateTypeConvertFireCode, generateTypeConvertFireCode, generateVariableInitialization, generateWrapupCode, getAddTimeString, getBufferSize, getBufferSize, getComponent, getDeclareSharedCode, getDefaultBlocks, getFireFunctionParameters, getHeaderFiles, getIncludeDirectories, getLibraries, getLibraryDirectories, getModifiedVariables, 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
public ModalController(ModalController component)
component
- The associated component.public java.lang.String generateFireCode() throws IllegalActionException
generateFireCode
in class ModalController
IllegalActionException
- If the adapter associated with
an actor throws it while generating fire code for the actorpublic java.lang.String generatePostfireCode() throws IllegalActionException
generatePostfireCode
in class NamedProgramCodeGeneratorAdapter
IllegalActionException
- If the adapter associated with
an actor throws it while generating postfire code for the actorpublic java.lang.String generateVariableDeclaration() throws IllegalActionException
NamedProgramCodeGeneratorAdapter
generateVariableDeclaration
in class NamedProgramCodeGeneratorAdapter
IllegalActionException
- If the adapter class for the model
director cannot be found.protected boolean _generateRefinementCode(java.lang.StringBuffer code) throws IllegalActionException
_generateRefinementCode
in class ModalController
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.