|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.cg.kernel.generic.CodeGeneratorAdapter
ptolemy.cg.kernel.generic.program.ProgramCodeGeneratorAdapter
ptolemy.cg.kernel.generic.program.NamedProgramCodeGeneratorAdapter
ptolemy.cg.adapter.generic.program.procedural.c.adapters.ptolemy.actor.lib.Accumulator
public class Accumulator
An adapter class for ptolemy.actor.lib.Accumulator.
| Green (cxh) |
| Green (mankit) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ptolemy.cg.kernel.generic.program.ProgramCodeGeneratorAdapter |
|---|
ProgramCodeGeneratorAdapter.Channel |
| Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
|---|
NamedObj.ContainedObjectsIterator |
| Field Summary |
|---|
| Fields inherited from class ptolemy.cg.kernel.generic.program.ProgramCodeGeneratorAdapter |
|---|
_component, _defaultBlocks, _eol, _templateParser |
| 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 | |
|---|---|
Accumulator(Accumulator actor)
Construct an Accumulator helper. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
_generateFireCode()
Generate fire code. |
java.lang.String |
generateInitializeCode()
Generate the initialize code. |
java.lang.String |
generatePreinitializeCode()
Generate the preinitialize code. |
java.util.Set |
getHeaderFiles()
Get the files needed by the code generated for the Accumulator actor. |
| Methods inherited from class ptolemy.cg.kernel.generic.program.ProgramCodeGeneratorAdapter |
|---|
_generateBlockByName, getAdapter, getCodeGenerator, getTemplateParser, processCode, setCodeGenerator, setTemplateParser, toString |
| Methods inherited from class ptolemy.cg.kernel.generic.CodeGeneratorAdapter |
|---|
createDecoratedAttributes, setTypesOfDecoratedVariables |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Accumulator(Accumulator actor)
actor - the associated actor.| Method Detail |
|---|
protected java.lang.String _generateFireCode()
throws IllegalActionException
fireBlock from Accumulator.c,
replaces macros with their values and returns the processed code
block.
_generateFireCode in class NamedProgramCodeGeneratorAdapterIllegalActionException - If the code stream encounters an
error in processing the specified code block(s).
public java.lang.String generateInitializeCode()
throws IllegalActionException
initBlock from Accumulator.c,
replaces macros with their values and returns the processed code
block.
generateInitializeCode in class NamedProgramCodeGeneratorAdapterIllegalActionException - If the code stream encounters an
error in processing the specified code block(s).
public java.lang.String generatePreinitializeCode()
throws IllegalActionException
preinitBlock from Accumulator.c,
replaces macros with their values and returns the processed code
block.
generatePreinitializeCode in class NamedProgramCodeGeneratorAdapterIllegalActionException - If the code stream encounters an
error in processing the specified code block(s).
public java.util.Set getHeaderFiles()
throws IllegalActionException
getHeaderFiles in class NamedProgramCodeGeneratorAdapterIllegalActionException - Not Thrown in this subclass.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||