public class TypedCompositeActor extends TypedCompositeActor
Red (wlc) |
Red (wlc) |
NamedProgramCodeGeneratorAdapter.VariableScope
ProgramCodeGeneratorAdapter.Channel
NamedObj.ContainedObjectsIterator
_component, _defaultBlocks, _eol, _templateParser
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
TypedCompositeActor(TypedCompositeActor actor)
Constructor method for the CompositeActor adapter.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
_generateFireCode()
Generate the fire code of a Composite Actor.
|
java.lang.String |
generateFireFunctionCode()
Generate The fire function code.
|
java.lang.String |
generateInitializeCode()
Generate the initialize code for this composite actor.
|
java.lang.String |
generatePostfireCode()
Generate the postfire code for this composite actor.
|
java.lang.String |
generatePrefireCode()
Generate the prefire code for this composite actor.
|
java.lang.String |
generatePreinitializeCode()
Generate the preinitialize code.
|
java.lang.String |
generatePreinitializeMethodBodyCode()
Generate the preinitialize code.
|
java.lang.String |
generateVariableDeclaration()
Generate variable declarations for inputs and outputs and parameters.
|
java.lang.String |
generateVariableInitialization()
Generate variable initialization for the referenced parameters.
|
java.lang.String |
generateWrapupCode()
Generate variable declarations for inputs and outputs and parameters.
|
java.util.Set<Parameter> |
getModifiedVariables()
Return a set of parameters that will be modified during the
execution of the model.
|
void |
setupAdapter()
Set up adapters contained by the composite actor.
|
analyzeTypeConvert, generateModeTransitionCode, getDeclareSharedCode, getHeaderFiles, getIncludeDirectories, getLibraries, getLibraryDirectories, getSharedCode
_generateTypeConvertStatement, copyFilesToCodeDirectory, generateFireCode, generateMainLoop, generateSimpleName, generateTypeConvertFireCode, generateTypeConvertFireCode, getAddTimeString, getBufferSize, getBufferSize, getComponent, getDefaultBlocks, getFireFunctionParameters, getName, getParameterValue, getReference, getReference, getSinkChannels, getSourceTimeString, getTimeSourcePortName, getTypeConvertChannels, getTypeConvertReference, getTypeConvertSinkChannels, 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 TypedCompositeActor(TypedCompositeActor actor)
actor
- the associated actorpublic java.lang.String generateFireFunctionCode() throws IllegalActionException
generateFireFunctionCode
in class TypedCompositeActor
IllegalActionException
- If thrown while generating fire code.public java.lang.String generateInitializeCode() throws IllegalActionException
generateInitializeCode
in class TypedCompositeActor
IllegalActionException
- If thrown while appending to the
the block or processing the macros.public java.lang.String generatePostfireCode() throws IllegalActionException
generatePostfireCode
in class TypedCompositeActor
IllegalActionException
- If thrown while appending to the
the block or processing the macros.public java.lang.String generatePrefireCode() throws IllegalActionException
generatePrefireCode
in class NamedProgramCodeGeneratorAdapter
IllegalActionException
- If thrown while appending to the
the block or processing the macros.public java.lang.String generatePreinitializeCode() throws IllegalActionException
generatePreinitializeCode
in class TypedCompositeActor
IllegalActionException
- If thrown while appending to the
the block or processing the macros.public java.lang.String generatePreinitializeMethodBodyCode() throws IllegalActionException
generatePreinitializeMethodBodyCode
in class TypedCompositeActor
IllegalActionException
- If thrown while appending to the
the block or processing the macros.public void setupAdapter() throws IllegalActionException
setupAdapter
in class TypedCompositeActor
IllegalActionException
- If the adapter associated with
an actor throws it while being set up.public java.lang.String generateVariableDeclaration() throws IllegalActionException
generateVariableDeclaration
in class TypedCompositeActor
IllegalActionException
- If the adapter class for the model
director cannot be found.public java.lang.String generateVariableInitialization() throws IllegalActionException
generateVariableInitialization
in class TypedCompositeActor
IllegalActionException
- If the adapter associated with
an actor throws it while generating variable declarations for
the actor.public java.lang.String generateWrapupCode() throws IllegalActionException
generateWrapupCode
in class TypedCompositeActor
IllegalActionException
- If the adapter class for the model
director cannot be found.public java.util.Set<Parameter> getModifiedVariables() throws IllegalActionException
getModifiedVariables
in class TypedCompositeActor
IllegalActionException
- If the adapter associated with an actor
or director throws it while getting modified variables.protected java.lang.String _generateFireCode() throws IllegalActionException
_generateFireCode
in class TypedCompositeActor
IllegalActionException
- If thrown while appending the
fireBlock or processing the code.