|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.codegen.kernel.CodeGenerator
ptolemy.codegen.rtmaude.kernel.RTMaudeCodeGenerator
public class RTMaudeCodeGenerator
RTMaude code generator.
CodeGenerator,
Serialized Form
| Red (kquine) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
|---|
NamedObj.ContainedObjectsIterator |
| Field Summary | |
|---|---|
(package private) java.lang.String |
maudeCommand
The default path of the Maude program. |
(package private) Parameter |
simulation_bound
The bound (natural number) of steps to simulate a given model. |
| Fields inherited from class ptolemy.codegen.kernel.CodeGenerator |
|---|
_codeFileName, _commandFlags, _commandOptions, _commandTemplate, _DEFAULT_TARGET, _eol, _executeCommands, _includes, _INDENT1, _INDENT2, _INDENT3, _libraries, _macros, _model, _modifiedVariables, _newTypesUsed, _postfireCode, _primitiveTypes, _sanitizedModelName, _tokenFuncUsed, _typeFuncUsed, allowDynamicMultiportReference, codeDirectory, compile, compileTarget, generateComment, generateCpp, generateEmbeddedCode, generatorPackage, inline, measureTime, overwriteFiles, padBuffers, run, sourceLineBinding, target |
| 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 | |
|---|---|
RTMaudeCodeGenerator(NamedObj container,
java.lang.String name)
Create a new instance of the RTMaude code generator. |
|
| Method Summary | |
|---|---|
protected int |
_executeCommands()
Execute the compile and run commands in the codeDirectory directory. |
protected java.lang.StringBuffer |
_finalPassOverCode(java.lang.StringBuffer code)
Make a final pass over the generated code. |
protected java.lang.String |
_generateBodyCode()
Generate the body code that lies between variable declaration and wrapup. |
protected java.lang.String |
_generateIncludeFiles()
Generate include files. |
java.lang.String |
formatComment(java.lang.String comment)
Return a formatted comment containing the specified string. |
java.lang.String |
generateMainEntryCode()
Generate the main entry point. |
java.lang.String |
generateMainExitCode()
Generate the main exit point. |
| Methods inherited from class ptolemy.kernel.util.Attribute |
|---|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
java.lang.String maudeCommand
Parameter simulation_bound
| Constructor Detail |
|---|
public RTMaudeCodeGenerator(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
container - The container.name - The name of the 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.| Method Detail |
|---|
protected java.lang.String _generateBodyCode()
throws IllegalActionException
CodeGenerator
_generateBodyCode in class CodeGeneratorIllegalActionException - If there is no director.
public java.lang.String generateMainEntryCode()
throws IllegalActionException
CodeGenerator
generateMainEntryCode in class CodeGeneratorIllegalActionException - Not thrown in this base class.
public java.lang.String generateMainExitCode()
throws IllegalActionException
CodeGenerator
generateMainExitCode in class CodeGeneratorIllegalActionException - Not thrown in this base class.
protected java.lang.String _generateIncludeFiles()
throws IllegalActionException
CodeGenerator
_generateIncludeFiles in class CodeGeneratorIllegalActionException - If the helper class for some actor
cannot be found.
protected java.lang.StringBuffer _finalPassOverCode(java.lang.StringBuffer code)
throws IllegalActionException
CodeGenerator
_finalPassOverCode in class CodeGeneratorcode - The given code to be processed.
IllegalActionException - If #getOutputFilename() throws it.public java.lang.String formatComment(java.lang.String comment)
CodeGenerator
formatComment in class CodeGeneratorcomment - The string to put in the comment.
protected int _executeCommands()
throws IllegalActionException
CodeGenerator
_executeCommands in class CodeGeneratorIllegalActionException - Not thrown in this base class.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||