|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ActorCodeGenerator
FIXME: class comments needed.
| Yellow (eal) |
| Yellow (eal) |
| Method Summary | |
|---|---|
java.lang.String |
createOffsetVariablesIfNeeded()
Create read and write offset variables if needed for the associated composite actor. |
java.lang.String |
generateFireCode()
Generate into the specified string buffer the code associated with one firing of the container composite actor. |
java.lang.String |
generateFireFunctionCode()
Generate The fire function code. |
void |
generateModeTransitionCode(java.lang.StringBuffer code)
Generate mode transition code. |
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 of the associated composite actor. |
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.util.Set |
getHeaderFiles()
Get the files needed by the code generated from this helper class. |
java.util.Set |
getIncludeDirectories()
Return a set of the directories to search for the actor's include files. |
java.util.Set |
getLibraries()
Return a set of the libraries to link the generated code to. |
java.util.Set |
getLibraryDirectories()
Return a set of the directories to search for libraries. |
java.util.Set |
getModifiedVariables()
Return a set of parameters that will be modified during the execution of the model. |
java.util.Set |
getSharedCode()
Generate the shared code. |
| Methods inherited from interface ptolemy.codegen.kernel.ComponentCodeGenerator |
|---|
generateInitializeCode, generateWrapupCode, getComponent, setCodeGenerator |
| Method Detail |
|---|
java.lang.String createOffsetVariablesIfNeeded()
throws IllegalActionException
IllegalActionException - If the helper class cannot be found
or the director helper throws it.
java.lang.String generateFireCode()
throws IllegalActionException
IllegalActionException - If something goes wrong.
java.lang.String generateFireFunctionCode()
throws IllegalActionException
IllegalActionException - If thrown while generating fire code.
void generateModeTransitionCode(java.lang.StringBuffer code)
throws IllegalActionException
code - The string buffer that the generated code is appended to.
IllegalActionException - If the director helper throws it
while generating mode transition code.
java.lang.String generatePostfireCode()
throws IllegalActionException
IllegalActionException - If the helper associated with
an actor throws it while generating the postfire code for the actor.
java.lang.String generatePrefireCode()
throws IllegalActionException
IllegalActionException - If the helper associated with
an actor throws it while generating the prefire code for the actor.
java.lang.String generatePreinitializeCode()
throws IllegalActionException
IllegalActionException - If the helper associated with
an actor throws it while generating preinitialize code for the actor
or while creating buffer size and offset map.
java.util.Set getHeaderFiles()
throws IllegalActionException
IllegalActionException - If something goes wrong.
java.util.Set getIncludeDirectories()
throws IllegalActionException
IllegalActionException - If thrown when finding the directories.
java.util.Set getLibraries()
throws IllegalActionException
IllegalActionException - If thrown when finding the libraries.
java.util.Set getLibraryDirectories()
throws IllegalActionException
IllegalActionException - If thrown when finding the libraries.
java.util.Set getModifiedVariables()
throws IllegalActionException
IllegalActionException - If an actor throws it while getting
modified variables.
java.util.Set getSharedCode()
throws IllegalActionException
IllegalActionException - Not thrown in this base class.
java.lang.String generateVariableDeclaration()
throws IllegalActionException
IllegalActionException - If the helper class for the model
director cannot be found.
java.lang.String generateVariableInitialization()
throws IllegalActionException
IllegalActionException - If the helper class for the model
director cannot be found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||