public class ModularSDFCodeGenerator extends JavaCodeGenerator
red (daib) |
red (rodiers) |
Modifier and Type | Class and Description |
---|---|
static class |
ModularSDFCodeGenerator.Firing
A firing instance of an actor.
|
static class |
ModularSDFCodeGenerator.FiringCluster
A cluster of firings of actors.
|
static class |
ModularSDFCodeGenerator.SimulationFiringFunction
A firing function for simulating (e.g. deadlock simulation)
|
static class |
ModularSDFCodeGenerator.SimulationJunction
Junction for simulation.
|
NamedObj.ContainedObjectsIterator
_compileCommandDefault, _includes, _libraries, compile, compileCommand, generateEmbeddedCode
_modifiedVariables, _newTypesUsed, _portTypeMap, _portTypeMap2, _portTypeMap3, _portTypeMaxIndex, _portTypeMaxIndex2, _portTypeMaxIndex3, _primitiveTypes, _runCommandDefault, _substituteMap, _tokenFuncUsed, _typeFuncUsed, _variablesAsArrays, generateComment, inline, maximumLinesPerBlock, measureTime, run, runCommand, useMake, variablesAsArrays, verbosity
_codeFileName, _eol, _executeCommands, _generateInSubdirectory, _model, _sanitizedModelName, codeDirectory, generateInSubdirectory, generatorPackage, generatorPackageList, INDENT1, INDENT2, INDENT3, overwriteFiles
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
ModularSDFCodeGenerator(NamedObj container,
java.lang.String name)
Create a new instance of the Modular java code generator.
|
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuffer |
createGraph()
Create the deterministic SDF with sharing buffers graph for a composite actor.
|
void |
createProfile()
Create the profile for the model (at this level).
|
int |
generateCode(java.lang.StringBuffer code)
Generate code.
|
java.lang.String |
generateMainEntryCode()
Generate the main entry point.
|
java.lang.String |
generateMainExitCode()
Generate the main exit point.
|
_addActorIncludeDirectories, _addActorLibraries, _addClassPathLibraries, _analyzeTypeConversions, _concatenateClasspath, _finalPassOverCode, _generateIncludeFiles, _generatePreinitializeMethodBodyCode, _generatePreinitializeMethodEntryCode, _generatePreinitializeMethodExitCode, _generatePreinitializeMethodProcedureName, _getAutoGeneratedAdapter, _getFireFunctionArguments, _printExecutionTime, _processCode, _recordStartTime, _reset, _templateParserClass, _writeMakefile, _writeVariableDeclarations, codeGenType, codeGenType2, codeGenTypeToPtType, codeGenTypeValue, generateClosingEntryCode, generateClosingExitCode, generateConstantDefinition, generateFireFunctionCompositeEnd, generateFireFunctionCompositeStart, generateFireFunctionMethodInvocation, generateFireFunctionMethodName, generateFireFunctionVariableAndMethodName, generateFireFunctionVariableDeclaration, generateFunctionTable, generateInitializeEntryCode, generateInitializeExitCode, generateInitializeProcedureName, generateLineInfo, generatePackageStatement, generatePostfireEntryCode, generatePostfireExitCode, generatePostfireProcedureName, generateTypeConvertCode, generateVariableDeclaration, generateVariableInitialization, generateVariableName, generateWrapupEntryCode, generateWrapupExitCode, generateWrapupProcedureName, getMethodExceptionString, getMethodVisibilityString, markFunctionCalled, ptTypeToCodegenType, splitLongBody, splitVariableDeclaration, targetType
_concatenateElements, _executeCommands, addInclude, addLibrary, addLibraryIfNecessary, clone, markFunctionCalled
_codeDirectoryAsFile, _formatComment, _generateBodyCode, _generateCode, _generatePreinitializeCode, _generateSharedCode, _instantiateAdapter, _setupAdapter, _splitBody, _splitVariableDeclaration, addModifiedVariables, attributeChanged, comment, comment, containsCode, generateFireFunctionCode, generateInitializeCode, generatePortName, generatePostfireCode, generatePtIOPortName, generatePtIOPortSize, generatePtTypedCompositeActorName, generatePtTypedCompositeActorSize, generateWrapupCode, getModifiedVariables, getTemplateExtension, isPrimitive, isPrimitive, ptolemyType, setModifiedVariables, updateCommandOptions
_copyCFilesTosrc, _copyCFileTosrc, _getAdapter, _getAdapterClassFilter, _getOutputFilename, _isTopLevel, _printTimeAndMemory, _resetAll, _writeCode, _writeCodeFileName, createDecoratorAttributes, decoratedObjects, generateCode, generateCode, generateCopyright, getAdapter, getCodeFileName, getComponent, getExecuteCommands, isGlobalDecorator, main, setCodeGenerator, setContainer, setExecuteCommands
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
description, getContainer, getDisplayName, getFullName, getName, getName, setName
public ModularSDFCodeGenerator(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of the Java code generator.IllegalActionException
- If the super class throws the exception or error occurs
when setting the file path.NameDuplicationException
- If the super class throws the exception or an error occurs
when setting the file path.public void createProfile() throws IllegalActionException
IllegalActionException
- when the profile can't be generated.public java.lang.StringBuffer createGraph() throws IllegalActionException
IllegalActionException
- If there are problems performing the analysis.public int generateCode(java.lang.StringBuffer code) throws KernelException
generateCode
in class GenericCodeGenerator
code
- The code buffer into which to generate the code.KernelException
- If a type conflict occurs or the model is running.public java.lang.String generateMainEntryCode() throws IllegalActionException
generateMainEntryCode
in class JavaCodeGenerator
IllegalActionException
- Not thrown in this base class.public java.lang.String generateMainExitCode() throws IllegalActionException
generateMainExitCode
in class JavaCodeGenerator
IllegalActionException
- Not thrown in this base class.