|
|||||||||
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.java.kernel.JavaCodeGeneratorHelper
ptolemy.codegen.java.actor.lib.UnaryMathFunction
public class UnaryMathFunction
A helper class for ptolemy.actor.lib.UnaryMathFunction.
Green (mankit) |
Green (mankit) |
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 | |
---|---|
UnaryMathFunction(UnaryMathFunction actor)
Construct the UnaryMathFunction helper. |
Method Summary | |
---|---|
protected java.lang.String |
_generateFireCode()
Generate fire code. |
java.util.Set |
getHeaderFiles()
Get the files needed by the code generated for the UnaryMathFunction actor. |
Methods inherited from class ptolemy.codegen.java.kernel.JavaCodeGeneratorHelper |
---|
_generateInputVariableDeclaration, _generateOutputVariableDeclaration, _generateReferencedParameterDeclaration, _generateTypeConvertVariableDeclaration, _replaceMacro, generateVariableDeclaration, getCodeGenerator, getFunctionInvocation, getJVMHeaderFiles, getNewInvocation, getParseTreeCodeGenerator, getReference |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnaryMathFunction(UnaryMathFunction actor)
actor
- the associated actorMethod Detail |
---|
protected java.lang.String _generateFireCode() throws IllegalActionException
expBlock
, logBlock
,
signBlock
, squareBlock
, or
sqrtBlock
from UnaryMathFunction.c depending on the
function parameter specified, replaces macros with their values
and returns the the processed code block.
_generateFireCode
in class CodeGeneratorHelper
IllegalActionException
- If the code stream encounters an
error in processing the specified code block(s).public java.util.Set getHeaderFiles() throws IllegalActionException
getHeaderFiles
in interface ActorCodeGenerator
getHeaderFiles
in class JavaCodeGeneratorHelper
IllegalActionException
- Not Thrown in this subclass.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |