|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| 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.RandomSource
ptolemy.codegen.c.actor.lib.Rician
public class Rician
A code generation helper class for ptolemy.actor.lib.Rician.
| 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 | |
|---|---|
Rician(Rician actor)
Constructor a Rician helper. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
_generateRandomNumber()
Generate code for producing a new random number. |
java.util.Set |
getHeaderFiles()
Get the files needed by the code generated for the Rician actor. |
java.util.Set |
getSharedCode()
Get shared code. |
| Methods inherited from class ptolemy.codegen.c.actor.lib.RandomSource |
|---|
_generateFireCode, generateInitializeCode |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Rician(Rician actor)
actor - The associated actor.| Method Detail |
|---|
public java.util.Set getSharedCode()
throws IllegalActionException
gaussianBlock from Rician.c,
replace macros with their values and return the processed code string.
getSharedCode in interface ActorCodeGeneratorgetSharedCode in class CodeGeneratorHelperIllegalActionException - If the code stream encounters an
error in processing the specified code block(s).
public java.util.Set getHeaderFiles()
throws IllegalActionException
getHeaderFiles in interface ActorCodeGeneratorgetHeaderFiles in class RandomSourceIllegalActionException - Not Thrown in this subclass.
protected java.lang.String _generateRandomNumber()
throws IllegalActionException
_generateRandomNumber in class RandomSourceIllegalActionException - Not thrown in this base class.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||