|
|||||||||
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.lib.gui.PlotterBase
public class PlotterBase
Common static methods for codegen plotters.
This class contains common code for the codegen plotters. In regular interpreted Ptolemy II plotters, we extend actor.lib.gui.PlotterBase. However, because in codegen we need to extend CCode
Red (cxh) |
Yellow (cxh) |
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 | |
---|---|
PlotterBase(PlotterBase actor)
Constructor method for the XYPlotter helper. |
Method Summary | |
---|---|
java.lang.String |
generateInitializeCode()
Generate initialize code. |
java.lang.String |
generatePlotFireCode(int width)
Generate plot specfic fire code. |
java.lang.String |
generateWrapupCode()
Generate the wrapup code. |
java.util.Set |
getHeaderFiles()
Get the header files needed by the code generated for the XYPlotter actor. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PlotterBase(PlotterBase actor)
actor
- the associated actor.Method Detail |
---|
public java.lang.String generatePlotFireCode(int width) throws IllegalActionException
width
- The width.
IllegalActionException
- If the code stream encounters
errors in processing the specified code blocks.public java.lang.String generateInitializeCode() throws IllegalActionException
generateInitializeCode
in interface ComponentCodeGenerator
generateInitializeCode
in class CodeGeneratorHelper
IllegalActionException
- If the code stream encounters
errors in processing the specified code blocks.public java.lang.String generateWrapupCode() throws IllegalActionException
generateWrapupCode
in interface ComponentCodeGenerator
generateWrapupCode
in class CodeGeneratorHelper
IllegalActionException
public java.util.Set getHeaderFiles() throws IllegalActionException
getHeaderFiles
in interface ActorCodeGenerator
getHeaderFiles
in class CCodeGeneratorHelper
IllegalActionException
- Not Thrown in this subclass.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |