|
|||||||||
| 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.java.kernel.JavaCodeGeneratorHelper
ptolemy.codegen.java.actor.lib.colt.ColtRandomSource
ptolemy.codegen.java.actor.lib.colt.ColtBinomial
public class ColtBinomial
A helper class for ptolemy.actor.lib.colt.ColtBinomial. NOTE: Currently, random numbers produced by c code generated by this class differ from those produced by the ColtBinomial random generator.
ColtBinomial,
Serialized Form
| Red |
| 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 | |
|---|---|
ColtBinomial(ColtBinomial actor)
Constructor method for the ColtBinomial helper. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
_generateRandomNumber()
Generate code for producing a new random number. |
java.lang.String |
generateInitializeCode()
Generate the code for initializing the random number generator with the seed, if it has been given. |
java.util.Set |
getHeaderFiles()
Get the files needed by the code generated for the ColtBinomial actor. |
| Methods inherited from class ptolemy.codegen.java.actor.lib.colt.ColtRandomSource |
|---|
_generateFireCode |
| 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 ColtBinomial(ColtBinomial actor)
actor - the associated actor| Method Detail |
|---|
public java.lang.String generateInitializeCode()
throws IllegalActionException
generateInitializeCode in interface ComponentCodeGeneratorgenerateInitializeCode in class ColtRandomSourceIllegalActionException - Not thrown in this class.
public java.util.Set getHeaderFiles()
throws IllegalActionException
getHeaderFiles in interface ActorCodeGeneratorgetHeaderFiles in class ColtRandomSourceIllegalActionException - Not Thrown in this subclass.
protected java.lang.String _generateRandomNumber()
throws IllegalActionException
_generateRandomNumber in class ColtRandomSourceIllegalActionException - Not thrown in this base class.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||