|
|||||||||
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.c.kernel.CCodeGeneratorHelper
ptolemy.codegen.c.actor.TypedCompositeActor
ptolemy.codegen.c.actor.lib.jni.CompiledCompositeActor
public class CompiledCompositeActor
Code generator helper for a composite actor that contains an actor with a body written in C.
Red (zgang) |
Yellow (zgang) |
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.kernel.CodeGeneratorHelper |
---|
_codeGenerator, _codeStream, _eol, _INDENT1, _INDENT2, _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 | |
---|---|
CompiledCompositeActor(CompiledCompositeActor component)
Construct the code generator helper associated with the given TypedCompositeActor. |
Method Summary | |
---|---|
private static CodeGenerator |
_getCodeGenerator(TypedCompositeActor compositeActor)
Find the codeGenerator for a given actor. |
static long |
copyFilesToCodeDirectory(TypedCompositeActor compositeActor)
If necessary, copy files from the fileDependencies code block. |
static void |
generateCode(TypedCompositeActor compositeActor)
Generate code for a given actor. |
Methods inherited from class ptolemy.codegen.c.kernel.CCodeGeneratorHelper |
---|
_generateInputVariableDeclaration, _generateOutputVariableDeclaration, _generateReferencedParameterDeclaration, _generateTypeConvertStatement, _generateTypeConvertVariableDeclaration, _getFireFunctionArguments, _replaceMacro, getCodeGenerator, getJVMHeaderFiles, getParseTreeCodeGenerator |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CompiledCompositeActor(CompiledCompositeActor component)
component
- The associated component.Method Detail |
---|
public static long copyFilesToCodeDirectory(TypedCompositeActor compositeActor) throws java.io.IOException, IllegalActionException
compositeActor
- The compositeActor, which is usually
an EmbeddedCActor.
java.io.IOException
- If there is a problem reading the
codeDirectory parameter.
IllegalActionException
- If there is a problem reading the
codeDirectory parameter.CodeGeneratorHelper.copyFilesToCodeDirectory(NamedObj, CodeGenerator)
public static void generateCode(TypedCompositeActor compositeActor) throws IllegalActionException
compositeActor
- The actor for which code is generated.
IllegalActionException
- If there are problems
accessing the actor.private static CodeGenerator _getCodeGenerator(TypedCompositeActor compositeActor) throws IllegalActionException
compositeActor
- The actor for which code is generated.
IllegalActionException
- If there are problems
accessing the actor.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |