Serialized Form


Package ptolemy.actor.lib.javasound

Class ptolemy.actor.lib.javasound.AudioCapture extends LiveSoundActor implements Serializable

Serialized Fields

trigger

ptolemy.actor.TypedIOPort trigger
The trigger port.


output

ptolemy.actor.TypedIOPort output
The output port. This will always produce double data, between -1.0 and 1.0.


output_tokenProductionRate

ptolemy.data.expr.Parameter output_tokenProductionRate
The output rate.


_audioInDoubleArray

double[][] _audioInDoubleArray

_audioSendArray

ptolemy.data.DoubleToken[] _audioSendArray

Class ptolemy.actor.lib.javasound.AudioPlayer extends LiveSoundActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port. This port must receive double tokens (in the range of -1.0 to 1.0);


input_tokenConsumptionRate

ptolemy.data.expr.Parameter input_tokenConsumptionRate
The input rate.


_audioPutArray

double[][] _audioPutArray

Class ptolemy.actor.lib.javasound.AudioReadBuffer extends Transformer implements Serializable

Serialized Fields

sourceURL

ptolemy.kernel.util.StringAttribute sourceURL
The URL of the file to read from. The default value of this parameter is the URL "file:///tmp/test.wav". Supported file formats are WAV, AU, and AIFF. The sound file format is determined from the file extension.

An exception will occur if the path references a non-existent or unsupported sound file.


bufferLength

ptolemy.data.expr.Parameter bufferLength
The length of the audio buffer to use. The default value is 8000.


_soundReader

SoundReader _soundReader

_channels

int _channels

_haveASample

boolean _haveASample

_safeToInitialize

boolean _safeToInitialize

_audioBuffer

double[] _audioBuffer

_postfireReturn

boolean _postfireReturn

Class ptolemy.actor.lib.javasound.AudioReader extends Source implements Serializable

Serialized Fields

fileOrURL

ptolemy.data.expr.FileParameter fileOrURL
The file name or URL from which to read. This is a string with any form accepted by FileParameter.

See Also:
FileParameter

_audioIn

double[][] _audioIn
Most recently read audio data.


_audioSendArray

ptolemy.data.DoubleToken[] _audioSendArray
Buffer of tokens to send.


_channels

int _channels
The number of channels.


_firedSinceWrapup

boolean _firedSinceWrapup
Indicator that the fire() method has been called, but wrapup has not. That is, we are in the middle of a run.


_previousFileOrURL

java.lang.String _previousFileOrURL
Previous value of fileOrURL parameter.


_reachedEOF

boolean _reachedEOF
Indicator that we have reached the end of the file.


_sampleIndex

int _sampleIndex
Index of the next output to produce from _audioIn.


_soundReader

SoundReader _soundReader
The current reader for the input file.

Class ptolemy.actor.lib.javasound.AudioWriteBuffer extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

address

ptolemy.actor.TypedIOPort address
The address port, which is a multiport.


data

ptolemy.actor.TypedIOPort data
The data port, which is a multiport.


bufferLength

ptolemy.data.expr.Parameter bufferLength
The length of the audio buffer to use. The default value is 8000.


overwrite

ptolemy.data.expr.Parameter overwrite
The write mode to use. If this parameter is set to true, then a write to a buffer element overwrites the old value in the buffer. Otherwise, a write adds the new value to the old value of the buffer element.


pathName

ptolemy.kernel.util.StringAttribute pathName
The name of the file to write to. The default value of this parameter is "test.wav", which creates a file called test.wav in the current directory and writes samples to this file.

The audio format to use is determined by the file extension. E.g., "outfile.wav" will create a WAV format file. The supported file formats are AU, WAV, and, AIFF.

An exception will be occur if the path references an unsupported sound file.


sampleRate

ptolemy.data.expr.Parameter sampleRate
The desired sample rate to use, in Hz. Valid values include: 8000, 11025, 22050, 44100, and 48000. The default value of the sample rate is an IntToken equal to 8000.

An exception will be thrown if an illegal value is used.


bitsPerSample

ptolemy.data.expr.Parameter bitsPerSample
The desired number of bits per sample. The default value is an IntToken equal to 16. Supported values are 8 and 16. An exception will be thrown if an illegal value is used.


channels

ptolemy.data.expr.Parameter channels
The number of audio channels to use. Supported values are 1 (single channel) and 2 (stereo). The default value is an IntToken equal to 1. An exception will be thrown if an illegal value is used.


_soundWriter

SoundWriter _soundWriter

_channels

int _channels

_putSampleSize

int _putSampleSize

_audioPutArray

double[][] _audioPutArray

_curElement

int _curElement

_inArray

ptolemy.data.Token[][] _inArray

_safeToInitialize

boolean _safeToInitialize

_audioBuffer

double[] _audioBuffer

Class ptolemy.actor.lib.javasound.AudioWriter extends Sink implements Serializable

Serialized Fields

pathName

ptolemy.kernel.util.StringAttribute pathName
The name of the file to write to. The default value of this parameter is "test.wav", which creates a file called test.wav in the current directory and writes samples to this file.

The audio format to use is determined by the file extension. E.g., "outfile.wav" will create a WAV format file. The supported file formats are AU, WAV, and, AIFF.

An exception will be occur if the path references an unsupported sound file.


sampleRate

ptolemy.data.expr.Parameter sampleRate
The desired sample rate to use, in Hz. Valid values include: 8000, 11025, 22050, 44100, and 48000. The default value of the sample rate is an IntToken equal to 8000.

An exception will be thrown if an illegal value is used.


bitsPerSample

ptolemy.data.expr.Parameter bitsPerSample
The desired number of bits per sample. The default value is an IntToken equal to 16. Supported values are 8 and 16. An exception will be thrown if an illegal value is used.


channels

ptolemy.data.expr.Parameter channels
The number of audio channels to use. Supported values are 1 (single channel) and 2 (stereo). The default value is an IntToken equal to 1. An exception will be thrown if an illegal value is used.


_soundWriter

SoundWriter _soundWriter

_channels

int _channels

_putSampleSize

int _putSampleSize

_audioPutArray

double[][] _audioPutArray

_curElement

int _curElement

_inArray

ptolemy.data.Token[][] _inArray

_safeToInitialize

boolean _safeToInitialize

Class ptolemy.actor.lib.javasound.LiveSoundActor extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

sampleRate

ptolemy.data.expr.Parameter sampleRate
The desired sample rate to use, in Hz. The default value is an IntToken equal to 8000.

An exception will be occur if this parameter is set to an unsupported sample rate.


bitsPerSample

ptolemy.data.expr.Parameter bitsPerSample
The number desired number of bits per sample. The default value is an IntToken equal to 16.

An exception will occur if this parameter is set to an unsupported bit resolution.


channels

ptolemy.data.expr.Parameter channels
The number of audio channels to use. The default value is an IntToken equal to 1.

An exception will occur if this parameter is set to an an unsupported channel number.


transferSize

ptolemy.data.expr.Parameter transferSize
The number of samples that will be transferred to the audio driver together. The default is 128.


_channels

int _channels

_transferSize

int _transferSize

_isExecuting

boolean _isExecuting


Package ptolemy.actor.lib

Class ptolemy.actor.lib.AbsoluteValue extends Transformer implements Serializable

Class ptolemy.actor.lib.Accumulator extends Transformer implements Serializable

Serialized Fields

init

ptolemy.data.expr.Parameter init
The value produced by the actor on its first iteration. The default value of this parameter is the integer 0.


reset

ptolemy.actor.TypedIOPort reset
If this port receives a True token on any channel, then the accumulator state will be reset to the initial value. This is a multiport and has type boolean.


_sum

ptolemy.data.Token _sum
The running sum.


_latestSum

ptolemy.data.Token _latestSum
The latest sum, prior to a state commit.

Class ptolemy.actor.lib.AddSubtract extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

minus

ptolemy.actor.TypedIOPort minus
Input for tokens to be subtracted. This is a multiport, and its type is inferred from the connections.


output

ptolemy.actor.TypedIOPort output
Output port. The type is inferred from the connections.


plus

ptolemy.actor.TypedIOPort plus
Input for tokens to be added. This is a multiport, and its type is inferred from the connections.

Class ptolemy.actor.lib.ArrayAppend extends Transformer implements Serializable

Class ptolemy.actor.lib.ArrayAverage extends Transformer implements Serializable

Class ptolemy.actor.lib.ArrayElement extends Transformer implements Serializable

Serialized Fields

index

PortParameter index
The index into the input array. This is an integer that defaults to 0, and is required to be less than or equal to the length of the input array. If the port is left unconnected, then the parameter value will be used.

Class ptolemy.actor.lib.ArrayExtract extends Transformer implements Serializable

Serialized Fields

sourcePosition

PortParameter sourcePosition
The index into the input array at which to start copying. This is a non-negative integer that defaults to 0, and is required to be less than the length of the input array.


extractLength

PortParameter extractLength
The length of the segment of the input array that is copied to the output. This is a non-negative integer that defaults to 1. The sum of it and the sourcePosition is required to be less than or equal to the length of the input array.


destinationPosition

PortParameter destinationPosition
The index into the output array at which to start copying. This is a non-negative integer that defaults to 0, and is required to be less than the length of the output array.


outputArrayLength

PortParameter outputArrayLength
The total length of the output array. This is a non-negative integer that defaults to 1. It is required to be at least destinationPosition plus extractLength.

Class ptolemy.actor.lib.ArrayLength extends Transformer implements Serializable

Class ptolemy.actor.lib.ArrayLevelCrossing extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

above

ptolemy.data.expr.Parameter above
An indicator of whether to look for values above or below the specified threshold. This is a boolean that defaults to false, which specifies to find values below the threshold.


array

ptolemy.actor.TypedIOPort array
The array to search for a threshold crossing. This has type {double}.


forwards

ptolemy.data.expr.Parameter forwards
The direction to search from the start. If true, search forwards. Otherwise, search backwards. This is a boolean that defaults to true.


output

ptolemy.actor.TypedIOPort output
The output port producing the index of the first bin to break the threshold. This has type int.


scale

ptolemy.data.expr.StringParameter scale
An indicator of whether threshold should be interpreted as absolute or relative, and if relative, then on a linear scale, in amplitude decibels, or power decibels. If decibels are used, then the corresponding linear threshold is 10^(threshold/N), where N is 20 (for amplitude decibels) or 10 (for power decibels). This parameter is a string with possible values "absolute", "relative linear", "relative amplitude decibels" or "relative power decibels". The default value is "absolute".


start

PortParameter start
The index from which to start looking for a threshold crossing. This is an integer that defaults to 0.


threshold

ptolemy.data.expr.Parameter threshold
The threshold to look for. This is a double that can be interpreted on an absolute or relative scale, and if relative, on a linear or decibel scale, depending on the scale parameter. It defaults to 0.0.

Class ptolemy.actor.lib.ArrayMaximum extends Transformer implements Serializable

Serialized Fields

index

ptolemy.actor.TypedIOPort index
The port producing the index of the largest element. This is port has type int.

Class ptolemy.actor.lib.ArrayMinimum extends Transformer implements Serializable

Serialized Fields

index

ptolemy.actor.TypedIOPort index
The port producing the index of the largest element. This is port has type int.

Class ptolemy.actor.lib.ArrayPeakSearch extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

dip

ptolemy.data.expr.Parameter dip
The amount that the signal must drop below a local maximum before a peak is detected. This is a double that can be interpreted as an absolute threshold or relative to the local peak, and if relative, on a linear or decibel scale, depending on the scale parameter. It defaults to 0.0.


endIndex

PortParameter endIndex
The end point of the search. If this number is larger than the length of the input array, then the search is to the end of the array. This is an integer that defaults to MaxInt.


input

ptolemy.actor.TypedIOPort input
The input port. This is required to be an array of doubles


maximumNumberOfPeaks

ptolemy.data.expr.Parameter maximumNumberOfPeaks
The maximum number of peaks to report. This is an integer that defaults to MaxInt.


peakIndices

ptolemy.actor.TypedIOPort peakIndices
The output port for the indices of the peaks. The type is {int} (array of int).


peakValues

ptolemy.actor.TypedIOPort peakValues
The output port for the values of the peaks. The type is the same as the input port.


scale

ptolemy.data.expr.StringParameter scale
An indicator of whether dip and squelch should be interpreted as absolute or relative, and if relative, then on a linear scale, in amplitude decibels, or power decibels. If decibels are used, then the corresponding linear threshold is 10^(threshold/N), where N is 20 (for amplitude decibels) or 10 (for power decibels). This parameter is a string with possible values "absolute", "relative linear", "relative amplitude decibels" or "relative power decibels". The default value is "absolute".


squelch

ptolemy.data.expr.Parameter squelch
The value below which the input is ignored by the algorithm. This is a double that can be interpreted as an absolute number or a relative number, and if relative, on a linear or decibel scale, depending on the scale parameter. For the relative case, the number is relative to the global peak. It defaults to -10.0.


startIndex

PortParameter startIndex
The starting point of the search. If this number is larger than the value of endIndex, the search is conducted backwards (and the results presented in reverse order). If this number is larger than the length of the input array, then the search is started at the end of the input array. This is an integer that defaults to 0.

Class ptolemy.actor.lib.ArraySort extends Transformer implements Serializable

Serialized Fields

allowDuplicates

ptolemy.data.expr.Parameter allowDuplicates
Tells the actor whether or not to remove duplicate elements. This is a boolean that defaults to true.


ascending

ptolemy.data.expr.Parameter ascending
The sort order attribute. This tells the actor whether to sort the elements in ascending or descending order. It is a boolean that defaults to true, which means ascending order.

Class ptolemy.actor.lib.ArrayToElements extends Transformer implements Serializable

Class ptolemy.actor.lib.Average extends Transformer implements Serializable

Serialized Fields

reset

ptolemy.actor.TypedIOPort reset
The reset port of type BooleanToken. If this input port receives a True token, then the averaging process will be reset.


_sum

ptolemy.data.Token _sum

_latestSum

ptolemy.data.Token _latestSum

_count

int _count

_latestCount

int _latestCount

Class ptolemy.actor.lib.Bernoulli extends RandomSource implements Serializable

Serialized Fields

trueProbability

ptolemy.data.expr.Parameter trueProbability
The probability of true. This parameter contains a DoubleToken, initially with value 0.5.


_current

boolean _current

Class ptolemy.actor.lib.BooleanMultiplexor extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

trueInput

ptolemy.actor.TypedIOPort trueInput
Input for tokens on the true path. The type can be anything.


falseInput

ptolemy.actor.TypedIOPort falseInput
Input for tokens on the false path. The type can be anything.


select

ptolemy.actor.TypedIOPort select
Input that selects one of the other input ports. The type is BooleanToken.


output

ptolemy.actor.TypedIOPort output
The output port. The type is at least the type of trueInput and falseInput

Class ptolemy.actor.lib.BooleanSelect extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

trueInput

ptolemy.actor.TypedIOPort trueInput
Input for tokens on the true path. The type can be anything.


falseInput

ptolemy.actor.TypedIOPort falseInput
Input for tokens on the false path. The type can be anything.


control

ptolemy.actor.TypedIOPort control
Input that selects one of the other input ports. The type is BooleanToken.


output

ptolemy.actor.TypedIOPort output
The output port. The type is at least the type of trueInput and falseInput


_control

boolean _control

Class ptolemy.actor.lib.BooleanSwitch extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

control

ptolemy.actor.TypedIOPort control
Input that selects one of the other input ports. The type is BooleanToken.


input

ptolemy.actor.TypedIOPort input
The input port. The type can be anything.


trueOutput

ptolemy.actor.TypedIOPort trueOutput
Output for tokens on the true path. The type is at least the type of the input.


falseOutput

ptolemy.actor.TypedIOPort falseOutput
Output for tokens on the false path. The type is at least the type of the input.


_control

boolean _control

Class ptolemy.actor.lib.BusAssembler extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

output

ptolemy.actor.TypedIOPort output
The input port.


_outputWidth

int _outputWidth

Class ptolemy.actor.lib.BusDisassembler extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port.

Class ptolemy.actor.lib.ClassWrapper extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

className

ptolemy.kernel.util.StringAttribute className
The name of the Java class.


_methodTable

java.util.Hashtable _methodTable

_instance

java.lang.Object _instance

_class

java.lang.Class _class

Class ptolemy.actor.lib.Clock extends TimedSource implements Serializable

Serialized Fields

numberOfCycles

ptolemy.data.expr.Parameter numberOfCycles
The number of cycles to produce, or -1 to specify no limit. This is an integer with default -1.


offsets

ptolemy.data.expr.Parameter offsets
The offsets at which the specified values will be produced. This parameter must contain an array of doubles, and it defaults to {0.0, 1.0}.


period

ptolemy.data.expr.Parameter period
The period of the output waveform. This parameter must contain a DoubleToken, and it defaults to 2.0.


values

ptolemy.data.expr.Parameter values
The values that will be produced at the specified offsets. This parameter must contain an ArrayToken, and it defaults to {1, 0}

Class ptolemy.actor.lib.Commutator extends Transformer implements Serializable

Serialized Fields

output_tokenProductionRate

ptolemy.data.expr.Parameter output_tokenProductionRate
The parameter controlling the output port production rate. This parameter contains an IntToken, initially with a value of 0.


_currentInputPosition

int _currentInputPosition

_tentativeInputPosition

int _tentativeInputPosition

Class ptolemy.actor.lib.ComputeHistogram extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

minimumValue

ptolemy.data.expr.Parameter minimumValue
The lowest value that will be recorded in the histogram. This parameter has type double, with default value 0.0.


maximumValue

ptolemy.data.expr.Parameter maximumValue
The highest value that will be recorded in the histogram. This parameter has type double, with default value 1.0.


numberOfBins

ptolemy.data.expr.Parameter numberOfBins
The number of bins. This parameter has type int, with default value 10.


inputCount

PortParameter inputCount
The number of tokens to compute the histogram for.


input_tokenConsumptionRate

ptolemy.data.expr.Parameter input_tokenConsumptionRate
The parameter that determines the consumption rate of the input.


input

ptolemy.actor.TypedIOPort input
The input port of type double.


output

ptolemy.actor.TypedIOPort output
The input port of type array of integer.


_bins

int[] _bins

_minimumValue

double _minimumValue

_maximumValue

double _maximumValue

_binWidth

double _binWidth

_numberOfBins

int _numberOfBins

Class ptolemy.actor.lib.Const extends Source implements Serializable

Serialized Fields

value

ptolemy.data.expr.Parameter value
The value produced by this constant source. By default, it contains an IntToken with value 1. If the type of this token is changed during the execution of a model, then the director will be asked to redo type resolution.

Class ptolemy.actor.lib.Counter extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

increment

ptolemy.actor.TypedIOPort increment
The increment port. If this input port receives a token, then the counter is incremented. The port has type general.


decrement

ptolemy.actor.TypedIOPort decrement
The decrement port. If this input port receives a token, then the counter is decremented. The port has type general.


output

ptolemy.actor.TypedIOPort output
The output port with type IntToken.


_count

int _count

_latestCount

int _latestCount

_consumed

boolean _consumed

Class ptolemy.actor.lib.CurrentTime extends TimedSource implements Serializable

Class ptolemy.actor.lib.DB extends Transformer implements Serializable

Serialized Fields

inputIsPower

ptolemy.data.expr.Parameter inputIsPower
If the input is proportional to power, then set this to true. This must be a boolean, and defaults to false.


min

ptolemy.data.expr.Parameter min
The minimum value of the output. This is a double, and defaults to -100.0.


_resultArray

ptolemy.data.DoubleToken[] _resultArray

Class ptolemy.actor.lib.Differential extends Transformer implements Serializable

Serialized Fields

_currentInput

ptolemy.data.Token _currentInput

_lastInput

ptolemy.data.Token _lastInput

Class ptolemy.actor.lib.Discard extends Sink implements Serializable

Class ptolemy.actor.lib.DiscreteRandomSource extends RandomSource implements Serializable

Serialized Fields

pmf

ptolemy.data.expr.Parameter pmf
The probability mass function. This parameter contains an array of doubles, with default value {0.5, 0.5}.


values

ptolemy.data.expr.Parameter values
The values to be sent to the output. This parameter contains an ArrayToken, initially with value {0, 1} (an int array).


_current

ptolemy.data.Token _current
Random value calculated in prefire().

Class ptolemy.actor.lib.Distributor extends Transformer implements Serializable

Serialized Fields

input_tokenConsumptionRate

ptolemy.data.expr.Parameter input_tokenConsumptionRate
The parameter controlling the input port consumption rate. This parameter contains an IntToken, initially with a value of 0.


_currentOutputPosition

int _currentOutputPosition

_tentativeOutputPosition

int _tentativeOutputPosition

Class ptolemy.actor.lib.DoubleReader extends URLReader implements Serializable

Serialized Fields

_data

double[] _data
Deprecated. 

_dataSize

int _dataSize
Deprecated. 

Class ptolemy.actor.lib.ElementsToArray extends Transformer implements Serializable

Class ptolemy.actor.lib.Exec extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

command

PortParameter command
The command to be executed. The command is parsed by StringUtilities.tokenizeForExec(String) into tokens and then executed as a separate subprocess. The initial default value is the string echo "Hello, world.".

The command parameter is read only once during fire(). If you want to spawn another different command, use life cycle management actors such RunCompositeActor.


directory

ptolemy.data.expr.FileParameter directory
The directory in which to execute the command.

This parameter is an Expert mode parameter, so it is usually hidden. To edit it, right click on the actor, select 'Configure', then hit the 'Preferences' button and select 'Expert Mode'.

This parameter is read each time the subprocess is started in fire(). Once the subprocess is running, this parameter is not read again until fire() is called again.

The initial default value of this parameter $CWD, which corresponds with the value of the Java virtual machine user.dir property which is the user's current working directory. Note that if we are running inside a menu launched application, then ptolemy.actor.gui.jnlp.MenuApplication will change user.dir to be the value of user.home, which is the name of the user's home directory.


environment

ptolemy.data.expr.Parameter environment
The environment in which to execute the command.

This parameter is an Expert mode parameter, so it is usually hidden. To edit it, right click on the actor, select 'Configure', then hit the 'Preferences' button and select 'Expert Mode'.

This parameter is read each time the subprocess is started in fire(). Once the subprocess is running, this parameter is not read again until fire() is called again.

This parameter is an array of records that name an environment variable and the value for the value. The format is:

  {{name = "NAME1", value = "value1"}...}
  
Where NAME1 is the name of the environment variable, and value1 is the value.

For example {{name = "PTII", value = "c:/ptII"}} would set the value of the PTII to c:/ptII.

If the initial value of the parameter is {{name="", value = ""}}, then the environment from the calling or parent process is used in the new command.

Note that if this parameter sets any environment variable, then under Windows the other environment variables in the calling or parent process might not be passed to the subprocess. This behaviour could be platform or JVM dependent. When in doubt, try setting the command value to "env" to print out the environment.


error

ptolemy.actor.TypedIOPort error
Data that is generated by the subprocess on its standard error. While the process is running, any error data generated by the subprocess is stored until the subprocess exits and then the stored error data is sent to the error port. If the subprocess generates no data on standard error, then the empty string (a string of length zero) is generated.

The port is an output port of type String.


input

ptolemy.actor.TypedIOPort input
Strings to pass to the standard input of the subprocess. Note that a newline is not appended to the string. If you require a newline, add one using the AddSubtract actor.

This port is an input port of type String.


output

ptolemy.actor.TypedIOPort output
Data that is generated by the subprocess on standard out. While the process is running, any output data generated by the subprocess is stored until the subprocess exits and then the stored output data is sent to the output port. If the subprocess generates no data on standard out, then the empty string (a string of length zero) is generated.

The port is an output port of type String.


_inputBufferedWriter

java.io.BufferedWriter _inputBufferedWriter

_errorGobbler

ptolemy.actor.lib.Exec._StreamReaderThread _errorGobbler

_outputGobbler

ptolemy.actor.lib.Exec._StreamReaderThread _outputGobbler

_process

java.lang.Process _process

_stopFireRequested

boolean _stopFireRequested

Class ptolemy.actor.lib.Exit extends Sink implements Serializable

Class ptolemy.actor.lib.Expression extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

output

ptolemy.actor.TypedIOPort output
The output port.


expression

ptolemy.kernel.util.StringAttribute expression
The expression that is evaluated to produce the output.


_iterationCount

int _iterationCount

_parseTree

ptolemy.data.expr.ASTPtRootNode _parseTree

_parseTreeEvaluator

ptolemy.data.expr.ParseTreeEvaluator _parseTreeEvaluator

_scope

ptolemy.actor.lib.Expression.VariableScope _scope

_tokenMap

java.util.Map _tokenMap

Class ptolemy.actor.lib.FileWriter extends Writer implements Serializable

Serialized Fields

filename

ptolemy.data.expr.Parameter filename
Deprecated. 
The name of the file to write to. This parameter contains a StringToken. By default, it contains an empty string, which is interpreted to mean that output should be directed to the standard output.

Class ptolemy.actor.lib.Gaussian extends RandomSource implements Serializable

Serialized Fields

mean

ptolemy.data.expr.Parameter mean
The mean of the random number. This parameter contains a DoubleToken, initially with value 0.


standardDeviation

ptolemy.data.expr.Parameter standardDeviation
The standard deviation of the random number. This parameter contains a DoubleToken, initially with value 1.


_current

double _current

Class ptolemy.actor.lib.GradientAdaptiveLattice extends Lattice implements Serializable

Serialized Fields

adaptedReflectionCoefficients

ptolemy.actor.TypedIOPort adaptedReflectionCoefficients
The output port that produces the current reflection coefficients. The port is of type array of double.


timeConstant

ptolemy.data.expr.Parameter timeConstant
The time constant of the filter, which determines how fast the filter adapts. The default value of this parameter is 1.0.


_alpha

double _alpha

_oneMinusAlpha

double _oneMinusAlpha

_estimatedErrorPower

double[] _estimatedErrorPower

_estimatedErrorPowerCache

double[] _estimatedErrorPowerCache

_reflectionCoefficientsCache

double[] _reflectionCoefficientsCache

Class ptolemy.actor.lib.IIR extends Transformer implements Serializable

Serialized Fields

numerator

ptolemy.data.expr.Parameter numerator
This parameter represents the numerator coefficients as an array of tokens. The format is {b0, b1, ..., bM}. The default value of this parameter is {1.0}.


denominator

ptolemy.data.expr.Parameter denominator
This parameter represents the denominator coefficients as an array of a tokens. The format is {a0, a1, ..., aN}. Note that the value of a0 is constrained to be 1.0. This implementation will issue a warning if it is not. The default value of this parameter is {1.0}.


_numerator

ptolemy.data.Token[] _numerator

_denominator

ptolemy.data.Token[] _denominator

_stateVector

ptolemy.data.Token[] _stateVector

_currentTap

int _currentTap

_latestWindow

ptolemy.data.Token _latestWindow

Class ptolemy.actor.lib.Interpolator extends SequenceSource implements Serializable

Serialized Fields

indexes

ptolemy.data.expr.Parameter indexes
The indexes at which the specified values will be produced. This parameter is an array of integers, with default value {0, 1}.


order

ptolemy.data.expr.Parameter order
The order of interpolation for non-index iterations. This parameter must contain an IntToken.


period

ptolemy.data.expr.Parameter period
The period of the reference values. This parameter must contain an IntToken.


values

ptolemy.data.expr.Parameter values
The values that will be produced at the specified indexes. This parameter is an array, with default value {1.0, 0.0}.


_iterationCount

int _iterationCount

_interpolation

ptolemy.math.Interpolation _interpolation

Class ptolemy.actor.lib.Lattice extends Transformer implements Serializable

Serialized Fields

reflectionCoefficients

ptolemy.data.expr.Parameter reflectionCoefficients
The reflection coefficients. This is an array of doubles with default value {0.804534, -0.820577, 0.521934, -0.205}. These are the reflection coefficients for the linear predictor of a particular random process.


_order

int _order

_backward

double[] _backward

_backwardCache

double[] _backwardCache

_forward

double[] _forward

_forwardCache

double[] _forwardCache

_reflectionCoefficients

double[] _reflectionCoefficients

Class ptolemy.actor.lib.LevinsonDurbin extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

autocorrelation

ptolemy.actor.TypedIOPort autocorrelation
The autocorrelation input, which is an array.


errorPower

ptolemy.actor.TypedIOPort errorPower
The output for the error power, as a function of the predictor order. This produces an array.


linearPredictor

ptolemy.actor.TypedIOPort linearPredictor
The output for linear predictor coefficients. This produces an array.


reflectionCoefficients

ptolemy.actor.TypedIOPort reflectionCoefficients
The output for lattice filter coefficients for a prediction error filter. This produces an array.

Class ptolemy.actor.lib.Limiter extends Transformer implements Serializable

Serialized Fields

bottom

ptolemy.data.expr.Parameter bottom
The bottom of the limiting range. This is a double with default value 0.0.


top

ptolemy.data.expr.Parameter top
The top of the limiting range. This is a double with default value 1.0.

Class ptolemy.actor.lib.LinearDifferenceEquationSystem extends Transformer implements Serializable

Serialized Fields

state

ptolemy.actor.TypedIOPort state
Output port that produces DoubleMatrixToken of dimension r x 1 (see class comment).


A

ptolemy.data.expr.Parameter A
The A matrix in the state-space representation. It must be a square matrix. The default value is [[1.0]].


B

ptolemy.data.expr.Parameter B
The B matrix in the state-space representation. The number of rows must be equal to the number of rows of the A matrix. The number of columns must be equal to the number of rows in the input token. The default value is [[1.0]].


C

ptolemy.data.expr.Parameter C
The C matrix in the state-space representation. The number of columns must be equal to the number of columns of the A matrix. The number of rows must be equal to the number of columns in the output token. The default value is [[0.0]].


D

ptolemy.data.expr.Parameter D
The D matrix in the state-space representation. The number of columns must be equal to the number of rows in the input token (a DoubleMatrixToken of dimension m x 1. The number of rows must be equal to the number of columns in the output token (a DoubleMatrixToken of dimension r x 1. The default value is [[0.0]].


initialStates

ptolemy.data.expr.Parameter initialStates
The initial condition for the state variables. This must be a column vector (double matrix with only one column) whose length is equal to the number of state variables. The default value is [0.0]. NOTE: Changes to this parameter will be * applied at the next time when fire() is called.


_x

ptolemy.data.Token _x

_xPrime

ptolemy.data.Token _xPrime

_initialStateChanged

boolean _initialStateChanged

_singleOutput

boolean _singleOutput

_singleState

boolean _singleState

Class ptolemy.actor.lib.LookupTable extends Transformer implements Serializable

Serialized Fields

table

ptolemy.data.expr.Parameter table
The table array that we look up elements in. This parameter is an array with default value {0, 1}.

Class ptolemy.actor.lib.MathFunction extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

function

ptolemy.data.expr.StringParameter function
The function to compute. This is a string-valued attribute that defaults to "exp".


firstOperand

ptolemy.actor.TypedIOPort firstOperand
The port for the first operand. The port has type BaseType.DOUBLE


secondOperand

ptolemy.actor.TypedIOPort secondOperand
The port for the second operand, if it is needed. The port has type BaseType.DOUBLE


output

ptolemy.actor.TypedIOPort output
Output port The port has type BaseType.DOUBLE


_resultArray

ptolemy.data.DoubleToken[] _resultArray

_function

int _function

Class ptolemy.actor.lib.Maximum extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port. This base class imposes no type constraints except that the type of the input cannot be greater than the type of the maximumValue output.


maximumValue

ptolemy.actor.TypedIOPort maximumValue
The output port for the maximum value. The type of this output is constrained to be at most a scalar.


channelNumber

ptolemy.actor.TypedIOPort channelNumber
The output port for the channel number. The type of this output is an integer.

Class ptolemy.actor.lib.MaxIndex extends Transformer implements Serializable

Class ptolemy.actor.lib.Minimum extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port. This base class imposes no type constraints except that the type of the input cannot be greater than the type of the minimumValue output.


minimumValue

ptolemy.actor.TypedIOPort minimumValue
The output port for the minimum value. The type of this output is constrained to be at most a scalar.


channelNumber

ptolemy.actor.TypedIOPort channelNumber
The output port for the channel number. The type of this output is an integer.

Class ptolemy.actor.lib.MonitorValue extends Sink implements Serializable

Serialized Fields

value

ptolemy.data.expr.Parameter value
The most recently seen input value. This parameter has the same type as the input.

Class ptolemy.actor.lib.Multiplexor extends Transformer implements Serializable

Serialized Fields

select

ptolemy.actor.TypedIOPort select
Input for the index of the port to select. The type is IntToken.


_channel

int _channel
The most recently read select input.

Class ptolemy.actor.lib.MultiplyDivide extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

divide

ptolemy.actor.TypedIOPort divide
Input for tokens to be divided. This is a multiport, and its type is inferred from the connections.


output

ptolemy.actor.TypedIOPort output
Output port. The type is inferred from the connections.


multiply

ptolemy.actor.TypedIOPort multiply
Input for tokens to be multiplied. This is a multiport, and its type is inferred from the connections.

Class ptolemy.actor.lib.NonStrictTest extends Sink implements Serializable

Serialized Fields

correctValues

ptolemy.data.expr.Parameter correctValues
A matrix specifying what the input should be. This defaults to a one-by-one array containing a boolean true.


tolerance

ptolemy.data.expr.Parameter tolerance
A double specifying how close the input has to be to the value given by correctValues. This is a DoubleToken, with default value 10-9.


trainingMode

ptolemy.data.expr.Parameter trainingMode
If true, then do not check inputs, but rather collect them into the correctValues array. This parameter is a boolean, and it defaults to false.


_numberOfInputTokensSeen

int _numberOfInputTokensSeen
Number of input tokens seen by this actor in the fire method.


_tolerance

double _tolerance
A double that is read from the tolerance parameter specifying how close the input has to be to the value given by correctValues. This is a double, with default value 10-9.


_iteration

int _iteration
Count of iterations.


_trainingTokens

java.util.List _trainingTokens
List to store tokens for training mode.

Class ptolemy.actor.lib.OrderedMerge extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

inputA

ptolemy.actor.TypedIOPort inputA
The first input port, which accepts any scalar token.


inputB

ptolemy.actor.TypedIOPort inputB
The second input port, which accepts any scalar token with the same type as the first input port.


output

ptolemy.actor.TypedIOPort output
The output port, which has the same type as the input ports.


recordedToken

ptolemy.data.ScalarToken recordedToken
The recorded token.


nextPort

ptolemy.actor.TypedIOPort nextPort
The port from which to read next.


tentativeRecordedToken

ptolemy.data.ScalarToken tentativeRecordedToken
The tentative recorded token.


tentativeNextPort

ptolemy.actor.TypedIOPort tentativeNextPort
The tentative port from which to read next.

Class ptolemy.actor.lib.PhaseUnwrap extends Transformer implements Serializable

Serialized Fields

_previousPhaseInput

double _previousPhaseInput

_tempPreviousPhaseInput

double _tempPreviousPhaseInput

_previousPhaseOutput

double _previousPhaseOutput

_tempPreviousPhaseOutput

double _tempPreviousPhaseOutput

Class ptolemy.actor.lib.PoissonClock extends TimedSource implements Serializable

Serialized Fields

fireAtStart

ptolemy.data.expr.Parameter fireAtStart
If true, then this actor will request a firing at the start time. Otherwise, the first firing will be requested at the first random time. This is a boolean-valued parameter that defaults to true.


meanTime

ptolemy.data.expr.Parameter meanTime
The mean time between events, where the output value transitions. This parameter must contain a DoubleToken.


values

ptolemy.data.expr.Parameter values
The values that will be produced at the output. This parameter can contain any ArrayToken, and it defaults to {1, 0}.

Class ptolemy.actor.lib.Pulse extends SequenceSource implements Serializable

Serialized Fields

indexes

ptolemy.data.expr.Parameter indexes
The indexes at which the specified values will be produced. This parameter is an array of integers, with default value {0, 1}.


repeat

ptolemy.data.expr.Parameter repeat
The flag that indicates whether the pulse sequence needs to be repeated. This is a boolean, and defaults to false.


values

ptolemy.data.expr.Parameter values
The values that will be produced at the specified indexes. This parameter is an array, with default value {1, 0}.


_iterationCount

int _iterationCount

_indexColCount

int _indexColCount

_zero

ptolemy.data.Token _zero

_match

boolean _match

_repeatFlag

boolean _repeatFlag

Class ptolemy.actor.lib.Quantizer extends Transformer implements Serializable

Serialized Fields

levels

ptolemy.data.expr.Parameter levels
The quantization levels. This parameter contains an array of doubles with default value {-1.0, 1.0}.


_thresholds

double[] _thresholds

Class ptolemy.actor.lib.Ramp extends SequenceSource implements Serializable

Serialized Fields

init

ptolemy.data.expr.Parameter init
The value produced by the ramp on its first iteration. The default value of this parameter is the integer 0.


step

PortParameter step
The amount by which the ramp output is incremented on each iteration. The default value of this parameter is the integer 1.


_stateToken

ptolemy.data.Token _stateToken

_resultArray

ptolemy.data.Token[] _resultArray

Class ptolemy.actor.lib.RandomSource extends Source implements Serializable

Serialized Fields

seed

ptolemy.data.expr.Parameter seed
The seed that controls the random number generation. A seed of zero is interpreted to mean that no seed is specified, which means that each execution of the model could result in distinct data. For the value 0, the seed is set to System.currentTimeMillis() + hashCode(), which means that with extremely high probability, two distinct actors will have distinct seeds. However, current time may not have enough resolution to ensure that two subsequent executions of the same model have distinct seeds. This parameter contains a LongToken, initially with value 0.


_random

java.util.Random _random

Class ptolemy.actor.lib.Reader extends Source implements Serializable

Serialized Fields

sourceURL

ptolemy.data.expr.Parameter sourceURL
The URL of the file to read from. This parameter contains a StringToken. By default, it contains an empty string, which is interpreted to mean that input should be directed to the standard input. FIXME: Should this bring up a dialog box to type (or select) a URL?


refresh

ptolemy.data.expr.Parameter refresh
Refresh between each readings. Default is false.


_reader

java.io.BufferedReader _reader

_source

java.lang.String _source

_data

double[] _data

_dataSize

int _dataSize

Class ptolemy.actor.lib.RecordAssembler extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

output

ptolemy.actor.TypedIOPort output
The output port. Its type is constrained to be a RecordType.

Class ptolemy.actor.lib.RecordDisassembler extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port. Its type is constrained to be a RecordType.

Class ptolemy.actor.lib.Recorder extends Sink implements Serializable

Serialized Fields

capacity

ptolemy.data.expr.Parameter capacity
The capacity of the record for each channel. This parameter must contain an IntToken.


_count

int _count

_records

java.util.List _records

_latest

ptolemy.data.Token[] _latest

_timeRecord

java.util.List _timeRecord

Class ptolemy.actor.lib.RecordUpdater extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

output

ptolemy.actor.TypedIOPort output
The output port. Its type is constrained to be a RecordType.


input

ptolemy.actor.TypedIOPort input
The input port. Its type is constrained to be a RecordType.

Class ptolemy.actor.lib.RecursiveLattice extends Transformer implements Serializable

Serialized Fields

reflectionCoefficients

ptolemy.data.expr.Parameter reflectionCoefficients
The reflection coefficients. This is an array of doubles with default value {0.804534, -0.820577, 0.521934, -0.205}. These are the reflection coefficients for the linear predictor of a particular random process.


_backward

double[] _backward

_backwardCache

double[] _backwardCache

_forward

double[] _forward

_forwardCache

double[] _forwardCache

_reflectionCoefs

double[] _reflectionCoefs

Class ptolemy.actor.lib.Remainder extends Transformer implements Serializable

Serialized Fields

divisor

ptolemy.data.expr.Parameter divisor
The divisor for calculating the remainder. This is a double with default value 1.0.

Class ptolemy.actor.lib.Rician extends RandomSource implements Serializable

Serialized Fields

xMean

ptolemy.data.expr.Parameter xMean
The mean of the random number along the X-axis. This parameter contains a DoubleToken, initially with value 0.0.


yMean

ptolemy.data.expr.Parameter yMean
The mean of the random number along the Y-axis. This parameter contains a DoubleToken, initially with value 0.0.


standardDeviation

ptolemy.data.expr.Parameter standardDeviation
The standard deviation of the random number. This parameter contains a DoubleToken, initially with value 1.0.


_current

double _current

Class ptolemy.actor.lib.Scale extends Transformer implements Serializable

Serialized Fields

factor

ptolemy.data.expr.Parameter factor
The factor. This parameter can contain any scalar token that supports multiplication. The default value of this parameter is the IntToken 1.


scaleOnLeft

ptolemy.data.expr.Parameter scaleOnLeft
Multiply on the left. This parameter controls whether the scale factor is multiplied on the left. The default value is a boolean token of value true. Setting is to false will multiply the factor on the right.

Class ptolemy.actor.lib.Select extends Transformer implements Serializable

Serialized Fields

control

ptolemy.actor.TypedIOPort control
Input port for control tokens, which specify the output channel to produce data on. The type is int.


_control

int _control

Class ptolemy.actor.lib.Sequencer extends Transformer implements Serializable

Serialized Fields

sequenceNumber

ptolemy.actor.TypedIOPort sequenceNumber
Input for the sequence number. The type is int.


startingSequenceNumber

ptolemy.data.expr.Parameter startingSequenceNumber
The first number of the sequence. This is an int that defaults to 0.


_fireProducedOutput

boolean _fireProducedOutput

_nextSequenceNumber

int _nextSequenceNumber

_nextToken

ptolemy.data.Token _nextToken

_pending

java.util.TreeMap _pending

_sequenceNumberOfInput

int _sequenceNumberOfInput

Class ptolemy.actor.lib.SequenceSource extends Source implements Serializable

Serialized Fields

firingCountLimit

ptolemy.data.expr.Parameter firingCountLimit
If greater than zero, then the number of iterations before the actor indicates to the scheduler that it is finished by returning false in its postfire() method.


_firingCountLimit

int _firingCountLimit
This is the value in parameter firingCountLimit. It may be convenient for derived classes to read this variable in the iterate() method.


_iterationCount

int _iterationCount
The current number of elapsed iterations. It may be convenient for derived classes to read/set this variable in the iterate() method.

Class ptolemy.actor.lib.SequentialClock extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

output

ptolemy.actor.TypedIOPort output
Deprecated. 
The output port. The type of this port is determined by from the values parameter.


offsets

ptolemy.data.expr.Parameter offsets
Deprecated. 
The offsets at which the specified values will be produced. This parameter must contain an array of doubles, and it defaults to {0.0, 1.0}.


period

ptolemy.data.expr.Parameter period
Deprecated. 
The period of the output waveform. This parameter must contain a DoubleToken, and defaults to 2.0.


values

ptolemy.data.expr.Parameter values
Deprecated. 
The values that will be produced at the specified offsets. This parameter must contain an ArrayToken, and defaults to {1, 0}.


_firstFiring

boolean _firstFiring
Deprecated. 

Class ptolemy.actor.lib.SetVariable extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port.


variableName

ptolemy.kernel.util.StringAttribute variableName
The name of the variable in the container to set.

Class ptolemy.actor.lib.Sink extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port, which is a multiport.

Class ptolemy.actor.lib.Sleep extends Transformer implements Serializable

Serialized Fields

sleepTime

ptolemy.data.expr.Parameter sleepTime
The sleepTime amount, in milliseconds This parameter must contain a LongToken. The default value of this parameter is 0, meaning that this actor will not sleep the current thread at all.


_wasSleepCalledInFireYet

boolean _wasSleepCalledInFireYet

Class ptolemy.actor.lib.Source extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

output

ptolemy.actor.TypedIOPort output
The output port. The type of this port is unspecified. Derived classes may set it.


trigger

ptolemy.actor.TypedIOPort trigger
The trigger port. The type of this port is undeclared, meaning that it will resolve to any data type.

Class ptolemy.actor.lib.Stop extends Sink implements Serializable

Class ptolemy.actor.lib.Switch extends Transformer implements Serializable

Serialized Fields

control

ptolemy.actor.TypedIOPort control
Input port for control tokens, which specify the output channel to produce data on. The type is int.


_control

int _control

Class ptolemy.actor.lib.Synchronizer extends Transformer implements Serializable

Class ptolemy.actor.lib.Test extends NonStrictTest implements Serializable

Serialized Fields

output

ptolemy.actor.TypedIOPort output
Boolean output that is false as long as there is data to compare against the input, but becomes true on the first firing after such data has been exhausted.

Class ptolemy.actor.lib.ThrowException extends Sink implements Serializable

Serialized Fields

message

ptolemy.kernel.util.StringAttribute message
The message reported in the exception, which is a string that defaults to "Model triggered an exception."

Class ptolemy.actor.lib.ThrowModelError extends Sink implements Serializable

Serialized Fields

message

ptolemy.kernel.util.StringAttribute message
The message reported in the exception.

Class ptolemy.actor.lib.TimedSource extends Source implements Serializable

Serialized Fields

stopTime

ptolemy.data.expr.Parameter stopTime
If greater than zero, then this parameter gives the time at which postfire() should return false.


_executing

boolean _executing

_stopTime

double _stopTime

Class ptolemy.actor.lib.Transformer extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port. This base class imposes no type constraints except that the type of the input cannot be greater than the type of the output.


output

ptolemy.actor.TypedIOPort output
The output port. By default, the type of this output is constrained to be at least that of the input.

Class ptolemy.actor.lib.TrigFunction extends Transformer implements Serializable

Serialized Fields

function

ptolemy.data.expr.StringParameter function
The function to compute. This is a string-valued attribute that defaults to "sin".


_resultArray

ptolemy.data.DoubleToken[] _resultArray

_function

int _function

Class ptolemy.actor.lib.TriggeredClock extends Clock implements Serializable

Serialized Fields

start

ptolemy.actor.TypedIOPort start
A port that, if connected, is used to specify when the clock starts. This port has undeclared type.


stop

ptolemy.actor.TypedIOPort stop
A port that, if connected, is used to specify when the clock stops. This port has undeclared type.

Class ptolemy.actor.lib.TypeTest extends Discard implements Serializable

Serialized Fields

parameterTypes

ptolemy.data.expr.Parameter parameterTypes
A record of record of strings representing the types of parameters of actors in the model.


portTypes

ptolemy.data.expr.Parameter portTypes
A record of record of strings representing the types of ports of actors in the model.


trainingMode

ptolemy.data.expr.Parameter trainingMode
If true, then do not check inputs, but rather collect them into the portTypes and parameterTypes arrays. This parameter is a boolean, and it defaults to false.

Class ptolemy.actor.lib.Uniform extends RandomSource implements Serializable

Serialized Fields

lowerBound

ptolemy.data.expr.Parameter lowerBound
The lower bound. This parameter contains a DoubleToken, initially with value 0.0.


upperBound

ptolemy.data.expr.Parameter upperBound
The upper bound. This parameter contains a DoubleToken, initially with value 0.0.


_current

double _current

Class ptolemy.actor.lib.URLDirectoryReader extends URLReader implements Serializable

Serialized Fields

endsWith

ptolemy.data.expr.Parameter endsWith
Deprecated. 
If non-null and non-empty, then only output file names and sub directories that end with this String value. The default value of this parameter is the empty String "".


repeat

ptolemy.data.expr.Parameter repeat
Deprecated. 
Repeat after outputting all elements of the directory. The default value of this parameter is a false BooleanToken.


_endsWithValue

java.lang.String _endsWithValue
Deprecated. 

_iterationCount

int _iterationCount
Deprecated. 

_data

java.lang.String[] _data
Deprecated. 

_repeatFlag

boolean _repeatFlag
Deprecated. 

Class ptolemy.actor.lib.URLReader extends Source implements Serializable

Serialized Fields

sourceURL

ptolemy.data.expr.Parameter sourceURL
The URL of the file to read from. This parameter contains a StringToken. By default, it contains an empty string, which is interpreted to mean that input should be directed to the standard input. FIXME: Should this bring up a dialog box to type (or select) a URL?


refresh

ptolemy.data.expr.Parameter refresh
The flag that indicates whether to refresh between each reading. This is a boolean, and defaults to false.


_reader

java.io.BufferedReader _reader

_source

java.lang.String _source

_refreshFlag

boolean _refreshFlag

Class ptolemy.actor.lib.VariableClock extends Clock implements Serializable

Serialized Fields

periodControl

ptolemy.actor.TypedIOPort periodControl
The port that controls the value of the period parameter.

Class ptolemy.actor.lib.VariableSleep extends Transformer implements Serializable

Serialized Fields

defaultSleepTime

ptolemy.data.expr.Parameter defaultSleepTime
The sleepTime amount, in milliseconds This parameter must contain a LongToken. The default value of this parameter is 0, meaning that this actor will not sleep the current thread at all.


sleepTime

ptolemy.actor.TypedIOPort sleepTime

_wasSleepCalledInFireYet

boolean _wasSleepCalledInFireYet

_sleepTime

long _sleepTime

Class ptolemy.actor.lib.VectorAssembler extends Transformer implements Serializable

Class ptolemy.actor.lib.VectorDisassembler extends Transformer implements Serializable

Class ptolemy.actor.lib.WallClockTime extends Source implements Serializable

Serialized Fields

passThrough

ptolemy.actor.TypedIOPort passThrough
The output port to which the trigger input is passed. The type is the same as the type of the trigger port, which is undeclared, meaning that it will resolve to any type.


_startTime

long _startTime
The start time.

Class ptolemy.actor.lib.Writer extends Sink implements Serializable

Serialized Fields

_writer

java.io.Writer _writer


Package ptolemy.actor.lib.comm

Class ptolemy.actor.lib.comm.ConvolutionalCoder extends Transformer implements Serializable

Serialized Fields

polynomialArray

ptolemy.data.expr.Parameter polynomialArray
An array of integers defining an array of polynomials with binary coefficients. The coefficients indicate the presence (1) or absence (0) of a tap in the shift register. Each element of this array parameter should be a positive integer. The default value is {05, 07}.


initialState

ptolemy.data.expr.Parameter initialState
Integer defining the initial state of the shift register. The i-th bit of the integer indicates the value of the i-th register. This parameter should be a non-negative integer. Its default value is the integer 0.


uncodedRate

ptolemy.data.expr.Parameter uncodedRate
Integer defining the number of bits that the shift register takes in each firing. It should be a positive integer. Its default value is the integer 1.


_inputRate

ptolemy.data.expr.Parameter _inputRate

_outputRate

ptolemy.data.expr.Parameter _outputRate

_shiftReg

int _shiftReg

_latestShiftReg

int _latestShiftReg

_inputNumber

int _inputNumber

_mask

int[] _mask

_maskNumber

int _maskNumber

_maxPolyValue

int _maxPolyValue

Class ptolemy.actor.lib.comm.DeScrambler extends Transformer implements Serializable

Serialized Fields

polynomial

ptolemy.data.expr.Parameter polynomial
Integer defining a polynomial with binary coefficients. The coefficients indicate the presence (1) or absence (0) of a tap in a feedback shift register. This parameter should contain a positive integer with the lower-order bit being 1. Its default value is the integer 0440001.


initialState

ptolemy.data.expr.Parameter initialState
Integer defining the initial state of the shift register. The n-th bit of the integer indicates the value of the n-th register. This parameter should be a non-negative integer. Its default value is the integer 1.


_shiftReg

int _shiftReg

_latestShiftReg

int _latestShiftReg

Class ptolemy.actor.lib.comm.HadamardCode extends Source implements Serializable

Serialized Fields

index

PortParameter index
Index of the code to generate. Codes with different indexes are orthogonal. This is an int with default 0. It should not exceed length-1, where length = 2^log2Length.


log2Length

ptolemy.data.expr.Parameter log2Length
Log base 2 of the length of the code. This is an integer with default 5. It is required to be greater than 0.


_index

int _index

_previousIndex

int _previousIndex

_latestIndex

int _latestIndex

_row

boolean[] _row

Class ptolemy.actor.lib.comm.HammingCoder extends Transformer implements Serializable

Serialized Fields

uncodedRate

ptolemy.data.expr.Parameter uncodedRate
Integer defining the uncode block size. It should be a positive integer. Its default value is the integer 4.


codedRate

ptolemy.data.expr.Parameter codedRate
Integer defining the Hamming code block size. This parameter should be a non-negative integer. Its default value is the integer 7.


_inputRate

ptolemy.data.expr.Parameter _inputRate

_outputRate

ptolemy.data.expr.Parameter _outputRate

_uncodeSizeValue

int _uncodeSizeValue

_codeSizeValue

int _codeSizeValue

_order

int _order

_parityMatrix

int[][] _parityMatrix

Class ptolemy.actor.lib.comm.HammingDecoder extends Transformer implements Serializable

Serialized Fields

uncodedRate

ptolemy.data.expr.Parameter uncodedRate
Integer defining the uncode block size. It should be a positive integer. Its default value is the integer 4.


codedRate

ptolemy.data.expr.Parameter codedRate
Integer defining the Hamming code block size. This parameter should be a non-negative integer. Its default value is the integer 7.


_inputRate

ptolemy.data.expr.Parameter _inputRate

_outputRate

ptolemy.data.expr.Parameter _outputRate

_uncodeSizeValue

int _uncodeSizeValue

_codeSizeValue

int _codeSizeValue

_order

int _order

_parityMatrix

int[][] _parityMatrix

_index

int[] _index

Class ptolemy.actor.lib.comm.Scrambler extends Transformer implements Serializable

Serialized Fields

polynomial

ptolemy.data.expr.Parameter polynomial
Integer defining a polynomial with binary coefficients. The coefficients indicate the presence (1) or absence (0) of a tap in a feedback shift register. This parameter should contain a positive integer with the lower-order bit being 1. Its default value is the integer 0440001.


initialState

ptolemy.data.expr.Parameter initialState
Integer defining the initial state of the shift register. The n-th bit of the integer indicates the value of the n-th register. This parameter should be a non-negative integer. Its default value is the integer 1.


_shiftReg

int _shiftReg

_latestShiftReg

int _latestShiftReg

Class ptolemy.actor.lib.comm.Slicer extends Transformer implements Serializable

Serialized Fields

table

ptolemy.data.expr.Parameter table
The code table. It is an array token of complex type. The number of values in this array must be at least 2wordLength, or an exception will be thrown. Its default value is {-1.0, 1.0}.


wordLength

ptolemy.data.expr.Parameter wordLength
The word length is the number of boolean output that are produced on each firing. Its value is an IntToken, with default value one.


_wordLength

int _wordLength

_size

int _size

_table

ptolemy.math.Complex[] _table

_inputRate

ptolemy.data.expr.Parameter _inputRate

_outputRate

ptolemy.data.expr.Parameter _outputRate

Class ptolemy.actor.lib.comm.TrellisDecoder extends ViterbiDecoder implements Serializable

Class ptolemy.actor.lib.comm.ViterbiDecoder extends Transformer implements Serializable

Serialized Fields

polynomialArray

ptolemy.data.expr.Parameter polynomialArray
An array of integers defining polynomials with binary coefficients. The coefficients indicate the presence (1) or absence (0) of a tap in the shift register. Each element of this array parameter should be a positive integer. The default value is {05, 07}.


uncodedRate

ptolemy.data.expr.Parameter uncodedRate
Integer defining the number of bits produced at the output in each firing. It should be a positive integer. Its default value is 1.


delay

ptolemy.data.expr.Parameter delay
Integer defining the trace back depth of the viterbi decoder. It should be a positive integer. Its default value is the integer 10.


softDecoding

ptolemy.data.expr.Parameter softDecoding
Boolean defining the decoding mode. If it is true, the decoder will do soft decoding, and the input data type will be double; otherwise it will do hard decoding, and the input data type will be boolean. The default value is false.


trellisDecoding

ptolemy.data.expr.Parameter trellisDecoding
Boolean defining whether the decoder will do trellis decoding. If it is true, the input data and constellation type will be complex; otherwise, they follow the constraints set by softDecoding. This parameter is always set to "false" in ViterbiDecoder. It will always be set to "true" in TrellisDecoder subclass.


constellation

ptolemy.data.expr.Parameter constellation
The constellation for soft decoding. Inputs are expected to be symbols from this constellation with added noise. This parameter should be a double array of length 2. The first element defines the amplitude of "false" input. The second element defines the amplitude of "true" input.


_inputRate

ptolemy.data.expr.Parameter _inputRate

_outputRate

ptolemy.data.expr.Parameter _outputRate

_type

ptolemy.actor.TypeAttribute _type

_trellisMode

boolean _trellisMode

_softMode

boolean _softMode

_mode

int _mode

_trueAmp

double _trueAmp

_falseAmp

double _falseAmp

_constellation

ptolemy.math.Complex[] _constellation

_inputNumber

int _inputNumber

_maskNumber

int _maskNumber

_mask

int[] _mask

_maxPolyValue

int _maxPolyValue

_shiftRegLength

int _shiftRegLength

_truthTable

int[][][] _truthTable

_rowNum

int _rowNum

_colNum

int _colNum

_depth

int _depth

_distance

double[] _distance

_tempDistance

double[] _tempDistance

_path

int[][] _path

_tempPath

int[][] _tempPath

_flag

int _flag


Package ptolemy.actor.lib.conversions

Class ptolemy.actor.lib.conversions.BooleanToAnything extends Converter implements Serializable

Serialized Fields

falseValue

ptolemy.data.expr.Parameter falseValue
The value produced at the output when a false input is read.


trueValue

ptolemy.data.expr.Parameter trueValue
The value produced at the output when a true input is read.

Class ptolemy.actor.lib.conversions.CartesianToComplex extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

x

ptolemy.actor.TypedIOPort x
The input port for the x coordinate of the Cartesian pair, which has type DoubleToken.


y

ptolemy.actor.TypedIOPort y
The input port for the y coordinate of the Cartesian pair, which has type DoubleToken.


output

ptolemy.actor.TypedIOPort output
The port for the output, which has type ComplexToken.

Class ptolemy.actor.lib.conversions.CartesianToPolar extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

x

ptolemy.actor.TypedIOPort x
The x coordinate of the input pair, which has type DoubleToken.


y

ptolemy.actor.TypedIOPort y
The y coordinate of the input pair, which has type DoubleToken.


magnitude

ptolemy.actor.TypedIOPort magnitude
The magnitude component of the output pair, which has type DoubleToken.


angle

ptolemy.actor.TypedIOPort angle
The angle component of the output pair, which has type DoubleToken.

Class ptolemy.actor.lib.conversions.ComplexToCartesian extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The port for the input, which has type ComplexToken.


x

ptolemy.actor.TypedIOPort x
The output port for x coordinate, which has type DoubleToken.


y

ptolemy.actor.TypedIOPort y
The output port for the imaginary coordinate, which has type DoubleToken.

Class ptolemy.actor.lib.conversions.ComplexToPolar extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The port for the input, which has type ComplexToken.


magnitude

ptolemy.actor.TypedIOPort magnitude
The output port for the magnitude component, which has type DoubleToken.


angle

ptolemy.actor.TypedIOPort angle
The output port for the angle component, which has type DoubleToken.

Class ptolemy.actor.lib.conversions.Converter extends Transformer implements Serializable

Class ptolemy.actor.lib.conversions.DoubleToFix extends Converter implements Serializable

Serialized Fields

precision

ptolemy.data.expr.Parameter precision
The precision of the output fixed-point number, which is represented by a 2-element integer matrix.


overflow

ptolemy.kernel.util.StringAttribute overflow
The overflow strategy used, such as "saturate" or "modulo".


rounding

ptolemy.kernel.util.StringAttribute rounding
The rounding strategy used, such as "nearest" or "truncate".


_quantization

ptolemy.math.FixPointQuantization _quantization

Class ptolemy.actor.lib.conversions.ExpressionToToken extends Converter implements Serializable

Serialized Fields

_parser

ptolemy.data.expr.PtParser _parser

_parseTreeEvaluator

ptolemy.data.expr.ParseTreeEvaluator _parseTreeEvaluator

_scope

ptolemy.data.expr.ParserScope _scope

Class ptolemy.actor.lib.conversions.FixToDouble extends Converter implements Serializable

Class ptolemy.actor.lib.conversions.FixToFix extends Converter implements Serializable

Serialized Fields

precision

ptolemy.data.expr.Parameter precision
The precision of the output fix-point number, represented by an integer matrix.


rounding

ptolemy.kernel.util.StringAttribute rounding
The rounding strategy used, such as "nearest" or "truncate".


overflow

ptolemy.kernel.util.StringAttribute overflow
The overflow strategy used to convert a double into a fix point, such as "saturate" or "to_zero".


_quantization

ptolemy.math.FixPointQuantization _quantization

Class ptolemy.actor.lib.conversions.IntArrayToString extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The port for the input, which has type {int}.


output

ptolemy.actor.TypedIOPort output
The output port, which has type string.

Class ptolemy.actor.lib.conversions.InUnitsOf extends Transformer implements Serializable

Serialized Fields

units

ptolemy.data.expr.Parameter units
The units to which the input tokens will be converted. The default value of this parameter is the double 1.0.

Class ptolemy.actor.lib.conversions.LongToDouble extends Converter implements Serializable

Class ptolemy.actor.lib.conversions.PolarToCartesian extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

magnitude

ptolemy.actor.TypedIOPort magnitude
The input port for the magnitude component, which has type DoubleToken.


angle

ptolemy.actor.TypedIOPort angle
The input port for the angle component (in radians), which has type DoubleToken.


x

ptolemy.actor.TypedIOPort x
The output port for the x coordinate, which has type DoubleToken.


y

ptolemy.actor.TypedIOPort y
The output port for the y coordinate, which has type DoubleToken.

Class ptolemy.actor.lib.conversions.PolarToComplex extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

magnitude

ptolemy.actor.TypedIOPort magnitude
The input port for the magnitude component, which has type DoubleToken.


angle

ptolemy.actor.TypedIOPort angle
The input port for the angle component (in radians), which has type DoubleToken.


output

ptolemy.actor.TypedIOPort output
The port for the output, which has type ComplexToken.

Class ptolemy.actor.lib.conversions.Round extends Transformer implements Serializable

Serialized Fields

function

ptolemy.kernel.util.StringAttribute function
The rounding strategy to use. This is a string-valued parameter that defaults to "round".


_resultArray

ptolemy.data.IntToken[] _resultArray

_function

int _function

Class ptolemy.actor.lib.conversions.StringToIntArray extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The port for the input, which has type string.


output

ptolemy.actor.TypedIOPort output
The output port, which has type {int}.

Class ptolemy.actor.lib.conversions.StringToUnsignedByteArray extends Converter implements Serializable

Class ptolemy.actor.lib.conversions.StringToXML extends Transformer implements Serializable

Serialized Fields

_outToken

ptolemy.data.XMLToken _outToken

Class ptolemy.actor.lib.conversions.TokenToExpression extends Converter implements Serializable

Class ptolemy.actor.lib.conversions.UnsignedByteArrayToString extends Converter implements Serializable


Package ptolemy.actor.lib.gui

Class ptolemy.actor.lib.gui.ArrayPlotter extends Plotter implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
Input port, which receives an array of doubles.


iterationsPerUpdate

ptolemy.data.expr.Parameter iterationsPerUpdate
The number of iterations between updates of the display on the screen. This parameter has type IntToken, with default value 1. Its value must be non-negative.


xUnit

ptolemy.data.expr.Parameter xUnit
The increment of the X axis.


xInit

ptolemy.data.expr.Parameter xInit
The start point of the X axis.


_xInit

double _xInit
Start of the X axis counter.


_xUnit

double _xUnit
Increment of the X axis counter.


_iteration

int _iteration

_offset

int _offset

_tokens

ptolemy.data.ArrayToken[] _tokens

Class ptolemy.actor.lib.gui.ArrowKeySensor extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

upArrow

ptolemy.actor.TypedIOPort upArrow
Output port, which has type IntToken.


leftArrow

ptolemy.actor.TypedIOPort leftArrow
Output port, which has type IntToken.


rightArrow

ptolemy.actor.TypedIOPort rightArrow
Output port, which has type IntToken.


downArrow

ptolemy.actor.TypedIOPort downArrow
Output port, which has type IntToken.


_myFrame

ptolemy.actor.lib.gui.ArrowKeySensor.MyFrame _myFrame
The JFrame


_upKeyPressed

boolean _upKeyPressed
The flags indicating which keys have been pressed or released since the last firing of the actor. Pressed and Released are are not allowed to both be true for the same key (Though both may be false). The most recent action (press or release) takes precedence.


_leftKeyPressed

boolean _leftKeyPressed

_rightKeyPressed

boolean _rightKeyPressed

_downKeyPressed

boolean _downKeyPressed

_upKeyReleased

boolean _upKeyReleased

_leftKeyReleased

boolean _leftKeyReleased

_rightKeyReleased

boolean _rightKeyReleased

_downKeyReleased

boolean _downKeyReleased

Class ptolemy.actor.lib.gui.BarGraph extends ArrayPlotter implements Serializable

Class ptolemy.actor.lib.gui.Display extends Sink implements Serializable

Serialized Fields

columnsDisplayed

ptolemy.data.expr.Parameter columnsDisplayed
The horizontal size of the display, in columns. This contains an integer, and defaults to 40.


rowsDisplayed

ptolemy.data.expr.Parameter rowsDisplayed
The vertical size of the display, in rows. This contains an integer, and defaults to 10.


title

ptolemy.kernel.util.StringAttribute title
The title to put on top.


_container

java.awt.Container _container

_frame

ptolemy.actor.gui.TextEditor _frame

_previousNumColumns

int _previousNumColumns

_previousNumRows

int _previousNumRows

_scrollPane

javax.swing.JScrollPane _scrollPane

_windowProperties

ptolemy.actor.gui.WindowPropertiesAttribute _windowProperties

Class ptolemy.actor.lib.gui.HistogramPlotter extends PlotterBase implements Serializable

Serialized Fields

binWidth

ptolemy.data.expr.Parameter binWidth
The width of the bin of the histogram. This parameter has type double, with default value 1.0.


binOffset

ptolemy.data.expr.Parameter binOffset
The offset for bins of the histogram. This parameter has type double, with default value 0.5.


input

ptolemy.actor.TypedIOPort input
The input port, which is a multiport.

Class ptolemy.actor.lib.gui.InteractiveShell extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port.


output

ptolemy.actor.TypedIOPort output
The output port.


prompt

PortParameter prompt
The prompt. The initial default is the string >>. Double quotes are not necessary.


shell

ptolemy.gui.ShellTextArea shell
The shell window object.


_container

java.awt.Container _container
Container into which this plot should be placed.


_firstTime

boolean _firstTime
Indicator of the first time through.


_frame

ptolemy.actor.gui.TableauFrame _frame
Frame into which plot is placed, if any.


_outputValues

java.util.List _outputValues
The list of strings to send to the output.


_returnFalseInPostfire

boolean _returnFalseInPostfire
Flag indicating that "exit" or "quit" has been entered.


_windowProperties

ptolemy.actor.gui.WindowPropertiesAttribute _windowProperties

Class ptolemy.actor.lib.gui.InteractiveShell.ShellFrame extends ptolemy.actor.gui.ExpressionShellFrame implements Serializable

Class ptolemy.actor.lib.gui.InteractiveShell.ShellTableau extends ptolemy.actor.gui.ExpressionShellTableau implements Serializable

Class ptolemy.actor.lib.gui.MatrixViewer extends Sink implements Serializable

Serialized Fields

width

ptolemy.data.expr.Parameter width
The width of the table in pixels. This must contain an integer. If the table is larger than this specified width, then scrollbars will appear, or the column width is adjusted. The default value is 500.


height

ptolemy.data.expr.Parameter height
The height of the table in pixels. This must contain an integer. If the table is larger than this specified width, then scrollbars will appear. The default value is 300.


_container

java.awt.Container _container
Container with the display, if any.


_effigy

ptolemy.actor.gui.TokenEffigy _effigy
The effigy for the token data.


_frame

ptolemy.actor.lib.gui.MatrixViewer.DisplayWindow _frame
The frame, if one is used.


_pane

ptolemy.actor.gui.MatrixPane _pane
Pane with the matrix display.


_paneSize

ptolemy.actor.gui.SizeAttribute _paneSize
A specification of the size of the pane if it's in its own window.


_tableau

ptolemy.actor.gui.TokenTableau _tableau
The tableau with the display, if any.


_width

int _width
Width of the matrix viewer in pixels.


_windowProperties

ptolemy.actor.gui.WindowPropertiesAttribute _windowProperties
A specification for the window properties of the frame.


_height

int _height
Height of the matrix viewer in pixels.

Class ptolemy.actor.lib.gui.Plotter extends PlotterBase implements Serializable

Serialized Fields

startingDataset

ptolemy.data.expr.Parameter startingDataset
The starting dataset number to which data is plotted. This parameter has type IntToken, with default value 0. Its value must be non-negative.

Class ptolemy.actor.lib.gui.PlotterBase extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

fillOnWrapup

ptolemy.data.expr.Parameter fillOnWrapup
If true, fill the plot when wrapup is called. This parameter has type BooleanToken, and default value true.


legend

ptolemy.kernel.util.StringAttribute legend
A comma-separated list of labels to attach to each data set. This is always a string, with no enclosing quotation marks.


_base

java.net.URL _base
The base specified in configure().


_container

java.awt.Container _container
Container into which this plot should be placed


_plotSize

ptolemy.actor.gui.SizeAttribute _plotSize
A specification of the size of the plot if it's in its own window.


_source

java.lang.String _source
The source specified in configure().


_text

java.lang.String _text
The text specified in configure().


_windowProperties

ptolemy.actor.gui.WindowPropertiesAttribute _windowProperties
A specification for the window properties of the frame.


_configureBases

java.util.List _configureBases

_configureSources

java.util.List _configureSources

_configureTexts

java.util.List _configureTexts

_configureSource

java.lang.String _configureSource

Class ptolemy.actor.lib.gui.PlotterBase.PlotterPlotFrame extends ptolemy.actor.gui.PlotTableauFrame implements Serializable

Class ptolemy.actor.lib.gui.PlotterBase.PlotWindowTableau extends ptolemy.actor.gui.PlotTableau implements Serializable

Serialized Fields

frame

PlotterBase.PlotterPlotFrame frame

Class ptolemy.actor.lib.gui.RealTimePlotter extends Plotter implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
Input port, which has type DoubleToken.


_startTime

long _startTime
The start time.

Class ptolemy.actor.lib.gui.SequencePlotter extends Plotter implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
Input port, which has type DoubleToken.


xUnit

ptolemy.data.expr.Parameter xUnit
The increment of the X axis.


xInit

ptolemy.data.expr.Parameter xInit
The start point of the X axis.


_xValue

double _xValue
X axis counter.


_xInit

double _xInit
Start of the X axis counter.


_xUnit

double _xUnit
Increment of the X axis counter.

Class ptolemy.actor.lib.gui.SequenceScope extends SequencePlotter implements Serializable

Serialized Fields

width

ptolemy.data.expr.Parameter width
The width of the X axis, in number of samples (an integer).


persistence

ptolemy.data.expr.Parameter persistence
The number of samples to be displayed at any one time (an integer).

Class ptolemy.actor.lib.gui.SketchedSource extends SequencePlotter implements Serializable

Serialized Fields

initialTrace

ptolemy.data.expr.Parameter initialTrace
The default signal to generate, prior to any user sketch. By default, this contains an array of zeros with the length given by the length parameter.


length

ptolemy.data.expr.Parameter length
The length of the output signal that will be generated. This parameter must contain an IntToken. By default, it has value 100.


output

ptolemy.actor.TypedIOPort output
The output port. The type of this port is double.


periodic

ptolemy.data.expr.Parameter periodic
An indicator of whether the signal should be periodically repeated. This parameter must contain a boolean token. By default, it has value true.


runOnModification

ptolemy.data.expr.Parameter runOnModification
If true, then when the user edits the plot, if the manager is currently idle, then run the model. This is a boolean that defaults to false.


yBottom

ptolemy.data.expr.Parameter yBottom
The bottom of the Y range. This is a double, with default value -1.0.


yTop

ptolemy.data.expr.Parameter yTop
The top of the Y range. This is a double, with default value 1.0.


_count

int _count
Current position in the signal.


_data

double[][] _data
Sketched data.


_dataModified

boolean _dataModified
Indicator that the user has modified the data.


_initialTraceIsSet

boolean _initialTraceIsSet
Indicator that initial trace has been supplied.


_previousLengthValue

int _previousLengthValue

_settingInitialTrace

boolean _settingInitialTrace

Class ptolemy.actor.lib.gui.SliderSource extends Source implements Serializable

Serialized Fields

minimum

ptolemy.data.expr.Parameter minimum
The minimum value of the slider. The value must be an integer. The default value is -10.


maximum

ptolemy.data.expr.Parameter maximum
The maximum value of the slider. The value must be an integer. The default value is 10.


slider

javax.swing.JSlider slider
The slider that controls the output of this actor.


title

ptolemy.kernel.util.StringAttribute title
The title to put on top.


_panel

javax.swing.JPanel _panel

_container

java.awt.Container _container

_val

int _val

_outputVal

ptolemy.data.IntToken _outputVal

_frame

javax.swing.JFrame _frame

Class ptolemy.actor.lib.gui.TimedPlotter extends Plotter implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
Input port, which has type DoubleToken.

Class ptolemy.actor.lib.gui.TimedScope extends TimedPlotter implements Serializable

Serialized Fields

width

ptolemy.data.expr.Parameter width
The width of the X axis (a double).


persistence

ptolemy.data.expr.Parameter persistence
The amount of data displayed at any one time (a double). This has units of the X axis.

Class ptolemy.actor.lib.gui.XYPlotter extends Plotter implements Serializable

Serialized Fields

inputX

ptolemy.actor.TypedIOPort inputX
Input port for the horizontal axis, with type DOUBLE.


inputY

ptolemy.actor.TypedIOPort inputY
Input port for the vertical axis, with type DOUBLE.

Class ptolemy.actor.lib.gui.XYScope extends XYPlotter implements Serializable

Serialized Fields

persistence

ptolemy.data.expr.Parameter persistence
The number of samples from each input channel displayed at any one time (an integer).


Package ptolemy.actor.lib.io

Class ptolemy.actor.lib.io.DirectoryListing extends Source implements Serializable

Serialized Fields

directoryOrURL

ptolemy.data.expr.FileParameter directoryOrURL
The directory name or URL from which to read. This is a string with any form accepted by FileParameter.

See Also:
FileParameter

directoryOrURLPort

ptolemy.actor.TypedIOPort directoryOrURLPort
An input port for optionally providing a directory name. This has type string.


pattern

ptolemy.data.expr.StringParameter pattern
If non-empty, then only output file and directory names that match the specified (regular expression) pattern. The default value of this parameter is the empty String "", which indicates that everything matches.


_data

java.lang.String[] _data

_pattern

java.util.regex.Pattern _pattern

Class ptolemy.actor.lib.io.ExpressionReader extends LineReader implements Serializable

Serialized Fields

_expressionEvaluator

ptolemy.data.expr.Variable _expressionEvaluator
Variable used to evaluate expressions.

Class ptolemy.actor.lib.io.ExpressionWriter extends LineWriter implements Serializable

Class ptolemy.actor.lib.io.FileReader extends Source implements Serializable

Serialized Fields

fileOrURL

ptolemy.data.expr.FileParameter fileOrURL
The file name or URL from which to read. This is a string with any form accepted by FileParameter.

See Also:
FileParameter

fileOrURLPort

ptolemy.actor.TypedIOPort fileOrURLPort
An input port for optionally providing a file name. This has type string.

Class ptolemy.actor.lib.io.LineReader extends Source implements Serializable

Serialized Fields

endOfFile

ptolemy.actor.TypedIOPort endOfFile
An output port that produces false until the end of file is reached, at which point it produces true. The type is boolean.


fileOrURL

ptolemy.data.expr.FileParameter fileOrURL
The file name or URL from which to read. This is a string with any form accepted by FileParameter.

See Also:
FileParameter

numberOfLinesToSkip

ptolemy.data.expr.Parameter numberOfLinesToSkip
The number of lines to skip at the beginning of the file or URL. This parameter contains an IntToken, initially with value 0. The value of this parameter must be non-negative.


_currentLine

java.lang.String _currentLine
Cache of most recently read data.


_reader

java.io.BufferedReader _reader
The current reader for the input file.


_firedSinceWrapup

boolean _firedSinceWrapup
Indicator that the fire() method has been called, but wrapup has not. That is, we are in the middle of a run.


_previousFileOrURL

java.lang.String _previousFileOrURL
Previous value of fileOrURL parameter.


_reachedEOF

boolean _reachedEOF
Indicator that we have reached the end of file.

Class ptolemy.actor.lib.io.LineWriter extends Sink implements Serializable

Serialized Fields

append

ptolemy.data.expr.Parameter append
If true, then append to the specified file. If false (the default), then overwrite any preexisting file after asking the user for permission.


fileName

ptolemy.data.expr.FileParameter fileName
The file name to which to write. This is a string with any form accepted by FileParameter. The default value is "System.out".

See Also:
FileParameter

confirmOverwrite

ptolemy.data.expr.Parameter confirmOverwrite
If false, then overwrite the specified file if it exists without asking. If true (the default), then if the file exists, ask for confirmation before overwriting.


_writer

java.io.PrintWriter _writer
The current writer.


_previousFileName

java.lang.String _previousFileName
Previous value of fileName parameter.


Package ptolemy.actor.lib.logic

Class ptolemy.actor.lib.logic.Comparator extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

left

ptolemy.actor.TypedIOPort left
The left input port, which has type double.


right

ptolemy.actor.TypedIOPort right
The right input port, which has type double.


output

ptolemy.actor.TypedIOPort output
The output port, which has type boolean.


comparison

ptolemy.kernel.util.StringAttribute comparison
The comparison operator. This is a string-valued attribute that defaults to ">".


tolerance

ptolemy.data.expr.Parameter tolerance
The tolerance for the comparison. This has type double, and defaults to 0.0.


_comparison

int _comparison

_tolerance

double _tolerance

Class ptolemy.actor.lib.logic.Equals extends Transformer implements Serializable

Class ptolemy.actor.lib.logic.IsPresent extends Transformer implements Serializable

Class ptolemy.actor.lib.logic.LogicalNot extends Transformer implements Serializable

Class ptolemy.actor.lib.logic.LogicFunction extends Transformer implements Serializable

Serialized Fields

function

ptolemy.kernel.util.StringAttribute function
The function to compute. This is a string-valued attribute that defaults to "and".


_function

int _function

_negate

boolean _negate


Package ptolemy.actor.lib.python

Class ptolemy.actor.lib.python.PythonScript extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

script

ptolemy.kernel.util.StringAttribute script
The script that specifies the function of this actor. The default value provides an empty template.


_class

org.python.core.PyClass _class

_methodMap

java.util.HashMap _methodMap

_object

org.python.core.PyObject _object


Package ptolemy.actor.lib.security

Class ptolemy.actor.lib.security.CipherActor extends CryptographyActor implements Serializable

Serialized Fields

mode

ptolemy.data.expr.StringParameter mode
The mode component when the Cipher is instantiated. Algorithms can be run in several different modes. The mode is specified as a string. Names for modes and modes implemented vary based on the provider. Possible values include
(The empty string)
Use the default setting for the algorithm.
NONE
No mode, meaning that the algorithm does not use a mode.
CBC
Cipher Block Chaining Mode, as defined in FIPS PUB 81. CBC is usually the mode that is used.
CFB
Cipher Feedback Mode, as defined in FIPS PUB 81.
ECB
Electronic Codebook Mode, as defined in: The National Institute of Standards and Technology (NIST) Federal Information Processing Standard (FIPS) PUB 81, "DES Modes of Operation," U.S. Department of Commerce, Dec 1980. ECM is best for encrypting small pieces of data. If possible, use CBC instead.
OFB
Output Feedback Mode, as defined in FIPS PUB 81.
PCBC
Propagating Cipher Block Chaining, as defined by Kerberos V4.
The initial default is the empty string, which indicates that the default setting for the algorithm should be used.

See the Java Cryptography Extension (JCE) Reference Guide for details.


padding

ptolemy.data.expr.StringParameter padding
The padding scheme used by the cipher during encryption. In cryptography, padding is used to handle situations where the input data must be an exact multiple of the block size for the algorithm http://www.di-mgt.com.au/cryptopad.html#whennopadding says:
Block cipher algorithms like DES and Blowfish in Electronic Code Book (ECB) and Cipher Block Chaining (CBC) mode require their input to be an exact multiple of the block size. If the plaintext to be encrypted is not an exact multiple, you need to pad before encrypting by adding a padding string. When decrypting, the receiving party needs to know how to remove the padding, if any.

The padding is specified as a string. Names for parameter and parameters implemented vary based on the provider. Possible values include

(The empty string)
Use the default setting for the algorithm.
NoPadding
No padding (do not use padding).
OAEPWithdigestAndmgfPadding
Optimal Asymmetric Encryption Padding scheme defined in PKCS #1, where digest should be replaced by the message digest and mgf by the mask generation function. Example: OAEPWithMD5AndMGF1Padding.
PKCS5Padding
The padding scheme described in: RSA Laboratories, "PKCS #5: Password-Based Encryption Standard," version 1.5, November 1993.
SSL3Padding
The padding scheme defined in the SSL Protocol Version 3.0, November 18, 1996, section 5.2.3.2 (CBC block cipher):
The initial default is the empty string, which indicates that the default setting for the algorithm should be used.

See the Java Cryptography Extension (JCE) Reference Guide for details.


_cipher

javax.crypto.Cipher _cipher
The cipher that will be used to process the data.


_mode

java.lang.String _mode
The mode to be used to process the data.


_padding

java.lang.String _padding
The padding scheme to be used process the data.


_updateCipherNeeded

boolean _updateCipherNeeded
Set to true if one of the parameters changed and we need to call _updateCipher().

Class ptolemy.actor.lib.security.CryptographyActor extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

algorithm

ptolemy.data.expr.StringParameter algorithm
Specify the algorithm to be used to process data. The algorithm is specified as a string. The algorithms are limited to those implemented by providers using the Java JCE which are found on the Java virtual machine. The initial default is the first value returned by java.security.Security.getAlgorithms();


input

ptolemy.actor.TypedIOPort input
The input port. The type of this port is unsigned byte array. Data is read in on this port, processed by the _process() method during fire() and passed to the output port.


keySize

ptolemy.data.expr.Parameter keySize
Specify the size of the key to be created. The key size is an integer value representing the number of bits in the key. The initial default depends on the algorithm that is selected, not all algorithms use keySize. In addition, only certain keySizes may work with certain algorithms, see the documentation for the algorithm you are using.

DSA is the most common algorithm that uses keySize, the Sun documentation says: "The length, in bits, of the modulus p. This must range from 512 to 1024, and must be a multiple of 64. The default keysize is 1024." Refer to http://java.sun.com/j2se/1.4.2/docs/guide/security/CryptoSpec.html#AppB for a list of possible key sizes for certain algorithms. The initial default is 1024.


output

ptolemy.actor.TypedIOPort output
The output port. The type of this port is unsigned byte array. This port sends out the processed data received from the input port.


provider

ptolemy.data.expr.StringParameter provider
Specify a provider for the given algorithm. The default value is "SystemDefault" which allows the system to choose the provider based on the JCE architecture.


_algorithm

java.lang.String _algorithm
The name of the algorithm to be used.


_keySize

int _keySize
The key size to be used when processing information.


_provider

java.lang.String _provider
The provider to be used for a provider specific implementation.

Class ptolemy.actor.lib.security.KeyReader extends KeyStoreActor implements Serializable

Serialized Fields

getPublicKey

ptolemy.data.expr.Parameter getPublicKey
True if we should get the public key. False if we should get the private key. The default value is true. Getting the private key requires using the keyPassword.


output

ptolemy.actor.TypedIOPort output
The output port. This port contains an KeyToken that contains a java.security.Key.


trigger

ptolemy.actor.TypedIOPort trigger
The trigger port. The type of this port is undeclared, meaning that it will resolve to any data type.


signatureAlgorithm

ptolemy.data.expr.StringParameter signatureAlgorithm
The name of the signature algorithm used to generate the key. This StringParameter is not settable by the user, it is set after initialize() is called and the certificate has been obtained from the KeyStore.


verifyCertificate

ptolemy.data.expr.Parameter verifyCertificate
True if the certificate associated with a key should be verified. False if the certificate (if any) need not be verified.
Public Keys must be associated with a certificate, so if getPublicKey is true, then this Parameter should be true as well.
Private keys are usually associated with a certificate, so verifying the certificate is a good idea.
Secret keys do not usually have a certificate, so if the key is a secret key, then usually verifyCertificate is set to false.


_getPublicKey

boolean _getPublicKey

_key

java.security.Key _key

_updateKeyNeeded

boolean _updateKeyNeeded

_verifyCertificate

boolean _verifyCertificate

Class ptolemy.actor.lib.security.KeyStoreActor extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

alias

ptolemy.data.expr.StringParameter alias
The alias of the certificate that we are looking for. The default alias is the String "claudius"


fileOrURL

ptolemy.data.expr.FileParameter fileOrURL
The file name or URL from which to read. This is a string with any form accepted by FileParameter. The initial default is "$PTII/ptKeystore". To create the initial default keystore, run "cd $PTII; make ptKeystore"

See Also:
FileParameter

keyStoreType

ptolemy.data.expr.StringParameter keyStoreType
The type of the keystore. See Java Cryptography Architecture API Specification & Reference for information about keystore types. The initial value is the string returned by java.security.KeyStore.getDefaultType().

Note that secret keys generated by the SecretKey actor should be saved in a keystore of type "JCEKS".


keyPassword

PortParameter keyPassword
The password to the Key. The default password is "this.is.the.keyPassword,change.it". If the port is left unconnected, then the parameter value will be used.


provider

ptolemy.data.expr.StringParameter provider
Specify a provider for the given algorithm. The default value is "SystemDefault" which allows the system to choose the provider based on the JCE architecture.


storePassword

PortParameter storePassword
The password to the KeyStore. The default password is "this.is.the.storePassword,change.it". If the port is left unconnected, then the parameter value will be used.


_alias

java.lang.String _alias
The alias of the Certificate that we are looking for.


_keyPassword

java.lang.String _keyPassword
The password for the key.


_keyStore

java.security.KeyStore _keyStore
The KeyStore itself.


_keyStoreType

java.lang.String _keyStoreType
The keyStore type.


_provider

java.lang.String _provider
The provider to be used for a provider specific implementation.


_storePassword

java.lang.String _storePassword
The password for the keyStore.


_loadKeyStoreNeeded

boolean _loadKeyStoreNeeded
Set to true if fileOrURL has changed and the keyStore needs to be read in again and the aliases updated.


_initializeKeyStoreNeeded

boolean _initializeKeyStoreNeeded

_url

java.net.URL _url

Class ptolemy.actor.lib.security.KeyToken extends ptolemy.data.Token implements Serializable

Serialized Fields

_value

java.security.Key _value
The java.security.Key

Class ptolemy.actor.lib.security.KeyToken.KeyType extends java.lang.Object implements Serializable

Class ptolemy.actor.lib.security.KeyWriter extends KeyStoreActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port, which contains on KeyToken.


output

ptolemy.actor.TypedIOPort output
The output port, which contains a True boolean token when the key has been written.

Class ptolemy.actor.lib.security.PrivateKeyReader extends KeyReader implements Serializable

Class ptolemy.actor.lib.security.PublicKeyReader extends KeyReader implements Serializable

Class ptolemy.actor.lib.security.SecretKey extends Source implements Serializable

Serialized Fields

algorithm

ptolemy.data.expr.StringParameter algorithm
Specify the algorithm to be used to process data. The algorithm is specified as a string. The algorithms are limited to those implemented by providers using the Java JCE which are found on the system. The initial default is "DES".


provider

ptolemy.data.expr.StringParameter provider
Specify a provider for the given algorithm. Takes the algorithm name as a string. The default value is "SystemDefault" which allows the system chooses the provider based on the JCE architecture.


keySize

ptolemy.data.expr.Parameter keySize
Specify the size of the key to be created. The key size is an integer value representing the number of bits in the key. The initial default depends on the algorithm that is selected, not all algorithms use keySize.

DSA is the most common algorithm that uses keySize, the Sun documentation says: "The length, in bits, of the modulus p. This must range from 512 to 1024, and must be a multiple of 64. The default keysize is 1024." Refer to http://java.sun.com/j2se/1.4.2/docs/guide/security/CryptoSpec.html#AppB for a list of possible key sizes for certain algorithms. The initial default is 1024.


_algorithm

java.lang.String _algorithm
The name of the algorithm to be used.


_keySize

int _keySize
The key size to be used when processing information.


_provider

java.lang.String _provider
The provider to be used for a provider specific implementation.


_secretKey

javax.crypto.SecretKey _secretKey

_secretKeyToken

KeyToken _secretKeyToken

_updateSecretKeyNeeded

boolean _updateSecretKeyNeeded

Class ptolemy.actor.lib.security.SecretKeyReader extends PrivateKeyReader implements Serializable

Class ptolemy.actor.lib.security.SignatureActor extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
This port takes in an unsigned byte array and processes the data.


output

ptolemy.actor.TypedIOPort output
This port sends out the processed data received from input in the form of an unsigned byte array.


provider

ptolemy.data.expr.StringParameter provider
Specify a provider for the given algorithm. Takes the algorithm name as a string. The default value is "SystemDefault" which allows the system chooses the provider based on the JCE architecture.


signatureAlgorithm

ptolemy.data.expr.StringParameter signatureAlgorithm
Specify the algorithm to be used to sign data. The algorithm is specified as a string. The algorithms are limited to those implemented by providers using the Java JCE which are found on the system. Depending on your JDK installation, possible values might be SHA1WITHDSA or MD5WITHRSA. The initial default is the first value returned by java.security.Security.getAlgorithms("Signature").


_provider

java.lang.String _provider
The name of the provider to be used for a provider specific implementation.


_signature

java.security.Signature _signature
The signature that will be used to process the data.


_signatureAlgorithm

java.lang.String _signatureAlgorithm
The name of the signature algorithm to be used.


_updateSignatureNeeded

boolean _updateSignatureNeeded

Class ptolemy.actor.lib.security.SignatureSigner extends SignatureActor implements Serializable

Serialized Fields

privateKey

ptolemy.actor.TypedIOPort privateKey
The private key to be used by the SignatureVerifier actor to verify the data on the output port. The type of this input port is an ObjectToken containing a java.security.PrivateKey.


signature

ptolemy.actor.TypedIOPort signature
The signature of the data. The type of this output port is unsigned byte array. The data is read in on the input port and the signature is generated on this port. The output port contains the data in clear text.


_privateKey

java.security.PrivateKey _privateKey

Class ptolemy.actor.lib.security.SignatureVerifier extends SignatureActor implements Serializable

Serialized Fields

signature

ptolemy.actor.TypedIOPort signature
The signature of the data. The type of this input port is unsigned byte array.


publicKey

ptolemy.actor.TypedIOPort publicKey
The public key that is used to verify the signature. This port receives the public key to be used from the The type of this input port is an KeyToken containing a java.security.PublicKey.


_publicKey

java.security.PublicKey _publicKey

Class ptolemy.actor.lib.security.SymmetricDecryption extends CipherActor implements Serializable

Serialized Fields

key

ptolemy.actor.TypedIOPort key
The key port. This port contains the key that is used to decrypt data from the input port. The type is KeyToken that contains a java.security.key


_key

java.security.Key _key

Class ptolemy.actor.lib.security.SymmetricEncryption extends CipherActor implements Serializable

Serialized Fields

key

ptolemy.actor.TypedIOPort key
The key to be used by this actor to encrypt the data. The type is an KeyToken containing a java.security.Key. Usually the output of the SecretKey actor is connected to this port


Package ptolemy.actor.lib.string

Class ptolemy.actor.lib.string.StringCompare extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

function

ptolemy.data.expr.Parameter function
The comparison function to be performed. The choices are:


firstString

PortParameter firstString
The input PortParameter for the first string of type string.


ignoreCase

ptolemy.data.expr.Parameter ignoreCase
The parameter to state whether to ignore case. This is a boolean that defaults to false.


output

ptolemy.actor.TypedIOPort output
The output port for the result of type BooleanToken.


secondString

PortParameter secondString
The input PortParameter for the second string of type string.


_function

int _function

Class ptolemy.actor.lib.string.StringFunction extends Transformer implements Serializable

Serialized Fields

function

ptolemy.data.expr.Parameter function
Parameter that stores the string function to be performed on the input string. The possible values are "trim" (the default), "toUpperCase", or "toLowerCase".


_function

int _function

Class ptolemy.actor.lib.string.StringIndexOf extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

ignoreCase

ptolemy.data.expr.Parameter ignoreCase
The parameter to state whether to ignore case. This is a boolean that defaults to false.


inText

PortParameter inText
Port and parameter specifying the string that will be searched. This has type string and defaults to the empty string.


output

ptolemy.actor.TypedIOPort output
Output producing the index of the searchFor string, if it is found, and -1 otherwise. This has type int.


searchFor

PortParameter searchFor
Port and parameter specifying a string to find in the inText string. This has type string and defaults to an empty string.


searchForwards

ptolemy.data.expr.Parameter searchForwards
Boolean parameter indicating the direction in which to search. This is true to find the first occurrence and false to find the last. The default value is true.


startIndex

PortParameter startIndex
Port and parameter that determines where to start the search. This has type int and defaults to 0.

Class ptolemy.actor.lib.string.StringLength extends Transformer implements Serializable

Class ptolemy.actor.lib.string.StringMatches extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

matchString

PortParameter matchString
The string to be pattern matched to the regular expression.


output

ptolemy.actor.TypedIOPort output
Output is true if the pattern exists in the string, false otherwise. Its type is boolean.


pattern

PortParameter pattern
The regular expression to be pattern matched with the matchString string. Its default parameter is an empty string that matches no strings.


_pattern

java.util.regex.Pattern _pattern

Class ptolemy.actor.lib.string.StringReplace extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

stringToEdit

PortParameter stringToEdit
The string to edit by replacing substrings that match the specified pattern with the specified replacement. This is a string that defaults to the empty string.


output

ptolemy.actor.TypedIOPort output
The output port on which the edited string is produced. This has type string.


pattern

PortParameter pattern
The pattern used to pattern match and replace the stringToEdit string. It is an empty string by default.


replaceAll

ptolemy.data.expr.Parameter replaceAll
When the boolean value is true, replace all instances that match the pattern, and when false, replace the first instance.


replacement

PortParameter replacement
The replacement string that replaces any matched instance of the pattern. It is an empty string by default.


_pattern

java.util.regex.Pattern _pattern

Class ptolemy.actor.lib.string.StringSubstring extends Transformer implements Serializable

Serialized Fields

start

PortParameter start
The beginning index of the input string, which is the position of first character of the desired substring. Its default value is 0, type int.


stop

PortParameter stop
The ending index of the input string, which is 1 greater than the position of last letter of the desired substring. Its default value is 0, type int.


Package ptolemy.actor.lib.xslt

Class ptolemy.actor.lib.xslt.XSLTransformer extends Transformer implements Serializable

Serialized Fields

fileOrURL

ptolemy.data.expr.FileParameter fileOrURL
The file name or URL from which to read. This is a string with any form accepted by FileParameter.

See Also:
FileParameter

_xsltSource

javax.xml.transform.Source _xsltSource

_transformerFactory

javax.xml.transform.TransformerFactory _transformerFactory

_transformer

javax.xml.transform.Transformer _transformer


Package ptolemy.actor.parameters

Class ptolemy.actor.parameters.IntRangeParameter extends ptolemy.data.expr.Parameter implements Serializable

Serialized Fields

max

ptolemy.data.expr.Parameter max
The maximum value. This is has an integer value, and defaults to 100.


min

ptolemy.data.expr.Parameter min
The minimum value. This is has an integer value, and defaults to 0.


_inCheck

boolean _inCheck
Indicator that we are in the middle of a check, so skip circular dependency.

Class ptolemy.actor.parameters.LocationParameter extends ptolemy.data.expr.Parameter implements Serializable

Class ptolemy.actor.parameters.ParameterPort extends ptolemy.actor.TypedIOPort implements Serializable

Serialized Fields

_settingName

boolean _settingName
Indicator that we are in the midst of setting the name.


_parameter

PortParameter _parameter
The associated parameter.

Class ptolemy.actor.parameters.PortParameter extends ptolemy.data.expr.Parameter implements Serializable

Serialized Fields

_port

ParameterPort _port
The associated port.


_settingName

boolean _settingName


Package ptolemy.domains.ct.kernel

Class ptolemy.domains.ct.kernel.CTBaseIntegrator extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port. This is a single port of type double.


output

ptolemy.actor.TypedIOPort output
The output port. This is a single port of type double.


initialState

ptolemy.data.expr.Parameter initialState
The initial state of type DoubleToken. The default value is 0.0


_history

CTBaseIntegrator.History _history
The history states and their derivative. This variable is needed by Linear Multistep (LMS) methods, like Trapezoidal rule and backward differential formula. This variable is protected so that derived classes may access it directly.


_successful

boolean _successful

_auxVariables

double[] _auxVariables

_state

double _state

_derivative

double _derivative

_tentativeState

double _tentativeState

_tentativeDerivative

double _tentativeDerivative

_storedState

double _storedState

Class ptolemy.domains.ct.kernel.CTCompositeActor extends ptolemy.actor.TypedCompositeActor implements Serializable

Class ptolemy.domains.ct.kernel.CTDirector extends ptolemy.actor.sched.StaticSchedulingDirector implements Serializable

Serialized Fields

errorTolerance

ptolemy.data.expr.Parameter errorTolerance
ODE solving error tolerance, only effective in variable step size methods. The default value is 1e-4, of type DoubleToken.


initStepSize

ptolemy.data.expr.Parameter initStepSize
User's hint for the initial integration step size. The default value is 0.1, of type DoubleToken.


maxIterations

ptolemy.data.expr.Parameter maxIterations
The maximum number of iterations in looking for a fixed-point. The default value is 20, of type IntToken.


maxStepSize

ptolemy.data.expr.Parameter maxStepSize
User's guide for the maximum integration step size. The default value is 1.0, of type DoubleToken.


minStepSize

ptolemy.data.expr.Parameter minStepSize
User's guide for the minimum integration step size. The default value is 1e-5, of type DoubleToken.


startTime

ptolemy.data.expr.Parameter startTime
Starting time of the simulation. The default value is 0.0, of type DoubleToken.


stopTime

ptolemy.data.expr.Parameter stopTime
Stop time of the simulation. The default value is Double.MAX_VALUE, of type DoubleToken.


synchronizeToRealTime

ptolemy.data.expr.Parameter synchronizeToRealTime
Indicate whether the execution will synchronize to real time. The default value is false.


timeResolution

ptolemy.data.expr.Parameter timeResolution
The resolution in comparing time. The default value is 1e-10, of type DoubleToken.


valueResolution

ptolemy.data.expr.Parameter valueResolution
Value resolution in looking for a fixed-point. The default value is 1e-6, of type DoubleToken.


_postfireReturns

boolean _postfireReturns
This flag will be set to false if any actor returns false to postfire() during the fire() phase of the director.


_refireActors

java.util.LinkedList _refireActors
A list of actors that requested to refire at the current time.


_currentSolver

ODESolver _currentSolver

_prefiredActors

java.util.Set _prefiredActors
Collection of actors that have been prefired().


_startTime

double _startTime

_stopTime

double _stopTime

_initStepSize

double _initStepSize

_minStepSize

double _minStepSize

_maxStepSize

double _maxStepSize

_maxIterations

int _maxIterations

_errorTolerance

double _errorTolerance

_valueResolution

double _valueResolution

_timeBase

long _timeBase

_breakpointIteration

boolean _breakpointIteration

_currentStepSize

double _currentStepSize

_suggestedNextStepSize

double _suggestedNextStepSize

_breakPoints

TotallyOrderedSet _breakPoints

_iterationBeginTime

double _iterationBeginTime

_discretePhase

boolean _discretePhase

Class ptolemy.domains.ct.kernel.CTEmbeddedDirector extends CTMultiSolverDirector implements Serializable

Serialized Fields

_outsideStepSize

double _outsideStepSize

_outputAcceptable

boolean _outputAcceptable

_stateAcceptable

boolean _stateAcceptable

_outsideTime

double _outsideTime

Class ptolemy.domains.ct.kernel.CTMixedSignalDirector extends CTMultiSolverDirector implements Serializable

Serialized Fields

runAheadLength

ptolemy.data.expr.Parameter runAheadLength
Parameter of the run ahead length. The default value is 1.0.


_Nroll

int _Nroll
The number of rollbacks. Used for statistics.


_hasDiscreteEvents

boolean _hasDiscreteEvents

_secondPrefire

boolean _secondPrefire

_mutationVersion

long _mutationVersion

_isTop

boolean _isTop

_knownGoodTime

double _knownGoodTime

_outsideTime

double _outsideTime

_runAheadLength

double _runAheadLength

_iterationEndTime

double _iterationEndTime

Class ptolemy.domains.ct.kernel.CTMultiSolverDirector extends CTDirector implements Serializable

Serialized Fields

ODESolver

ptolemy.data.expr.Parameter ODESolver
The name of the normal ODE solver used in nonbreakpoint iterations. The default is a String "ptolemy.domains.ct.kernel.solver.ExplicitRK23Solver"


breakpointODESolver

ptolemy.data.expr.Parameter breakpointODESolver
The name of the ODE solver that is used in the iterations just after the breakpoint. The default is "ptolemy.domains.ct.kernel.solver.DerivativeResolver"


_solverClassName

java.lang.String _solverClassName
Indicate whether this is the first iteration.


_defaultSolver

ODESolver _defaultSolver

_breakpointSolverClassName

java.lang.String _breakpointSolverClassName

_breakpointSolver

ODESolver _breakpointSolver

Class ptolemy.domains.ct.kernel.CTReceiver.SignalType extends java.lang.Object implements Serializable

Class ptolemy.domains.ct.kernel.CTScheduler extends ptolemy.actor.sched.Scheduler implements Serializable

Serialized Fields

_signalTypeMap

ptolemy.domains.ct.kernel.CTScheduler.SignalTypeMap _signalTypeMap

Class ptolemy.domains.ct.kernel.NumericalNonconvergeException extends ptolemy.kernel.util.InvalidStateException implements Serializable

Class ptolemy.domains.ct.kernel.ODESolver extends ptolemy.kernel.util.NamedObj implements Serializable

Serialized Fields

_container

ptolemy.actor.Director _container

_round

int _round


Package ptolemy.domains.ct.kernel.solver

Class ptolemy.domains.ct.kernel.solver.BackwardEulerSolver extends FixedStepSolver implements Serializable

Serialized Fields

_converge

boolean _converge
True if all the votes are true.

Class ptolemy.domains.ct.kernel.solver.DerivativeResolver extends ODESolver implements Serializable

Class ptolemy.domains.ct.kernel.solver.ExplicitRK23Solver extends ODESolver implements Serializable

Class ptolemy.domains.ct.kernel.solver.FixedStepSolver extends ODESolver implements Serializable

Class ptolemy.domains.ct.kernel.solver.ForwardEulerSolver extends FixedStepSolver implements Serializable

Class ptolemy.domains.ct.kernel.solver.ImpulseBESolver extends BackwardEulerSolver implements Serializable

Class ptolemy.domains.ct.kernel.solver.TrapezoidalRuleSolver extends ODESolver implements Serializable

Serialized Fields

_converge

boolean _converge
True if all the votes are true.


Package ptolemy.domains.ct.lib

Class ptolemy.domains.ct.lib.ContinuousClock extends Clock implements Serializable

Serialized Fields

defaultValue

ptolemy.data.expr.Parameter defaultValue
The default value used after the clock stops. In the triggered continuous clock, which extends this class and has a start trigger, the default value is used as output before the clock starts. This parameter must contain a token, and it defaults to 0.


_tMinus

boolean _tMinus

_tPlus

boolean _tPlus

Class ptolemy.domains.ct.lib.ContinuousTransferFunction extends ptolemy.actor.TypedCompositeActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
Single input port.


output

ptolemy.actor.TypedIOPort output
Single output port.


numerator

ptolemy.data.expr.Parameter numerator
The coefficients of the numerator, containing an array of DoubleTokens. The default value is {1.0}.


denominator

ptolemy.data.expr.Parameter denominator
The coefficients of the denominator, containing an array of DoubleTokens. The array must have a length greater than or equal to the length of the numerator. The default value is {1.0}.


_opaque

boolean _opaque

Class ptolemy.domains.ct.lib.CTPeriodicSampler extends Transformer implements Serializable

Serialized Fields

samplePeriod

ptolemy.data.expr.Parameter samplePeriod
The parameter for the sampling period; the type is double; the default value is 1.0.


_samplePeriod

double _samplePeriod

_hasCurrentEvent

boolean _hasCurrentEvent

_nextSamplingTime

double _nextSamplingTime

Class ptolemy.domains.ct.lib.CTRateLimiter extends Transformer implements Serializable

Serialized Fields

risingSlewRate

ptolemy.data.expr.Parameter risingSlewRate
The rising slew rate. The parameter has type double and default value 1.0.


fallingSlewRate

ptolemy.data.expr.Parameter fallingSlewRate
The rising slew rate. The parameter has type double and default value -1.0.


_lastTime

double _lastTime

_lastToken

ptolemy.data.Token _lastToken

_newToken

ptolemy.data.Token _newToken

Class ptolemy.domains.ct.lib.CTTriggeredSampler extends Transformer implements Serializable

Serialized Fields

trigger

ptolemy.actor.TypedIOPort trigger
The input port for triggering. The port has a generic type. Only the presents of a token matters.

Class ptolemy.domains.ct.lib.DifferentialSystem extends ptolemy.actor.TypedCompositeActor implements Serializable

Serialized Fields

stateVariableNames

ptolemy.data.expr.Parameter stateVariableNames
The names of the state variables, in an array of strings. The default is an ArrayToken of an empty String.


initialStates

ptolemy.data.expr.Parameter initialStates
The initial condition for the state variables. This must be a vector (double matrix with only one row) whose default value is empty.


_opaque

boolean _opaque

Class ptolemy.domains.ct.lib.EventSource extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

output

ptolemy.actor.TypedIOPort output
The output port. The type of this port is determined by from the values parameter.


offsets

ptolemy.data.expr.Parameter offsets
The offsets at which the specified values will be produced. This parameter must contain an array of doubles, and it defaults to {0.0, 1.0}.


period

ptolemy.data.expr.Parameter period
The period of the output events. This parameter must contain a DoubleToken, and defaults to 2.0.


values

ptolemy.data.expr.Parameter values
The values that will be produced at the specified offsets. This parameter must contain an ArrayToken, and defaults to {1, 0}.

Class ptolemy.domains.ct.lib.FirstOrderHold extends Transformer implements Serializable

Serialized Fields

derivative

ptolemy.actor.TypedIOPort derivative
The input port that takes the derivative. The type is double.


defaultDerivative

ptolemy.data.expr.Parameter defaultDerivative
Default input derivative before receiving ay inputs. The default is an integer with value 0. The type of the output is set to at least this type.


defaultValue

ptolemy.data.expr.Parameter defaultValue
Default output before any input has received. The default is an integer with value 0. The type of the output is set to at least this type.


_value

double _value

_derivative

double _derivative

_time

double _time

Class ptolemy.domains.ct.lib.Integrator extends CTBaseIntegrator implements Serializable

Class ptolemy.domains.ct.lib.LevelCrossingDetector extends Transformer implements Serializable

Serialized Fields

trigger

ptolemy.actor.TypedIOPort trigger
The trigger port. Single port with type double.


errorTolerance

ptolemy.data.expr.Parameter errorTolerance
The parameter of error tolerance of type double. By default, it contains a DoubleToken of 1e-4.


level

ptolemy.data.expr.Parameter level
The parameter that specifies the level threshold. By default, it contains a DoubleToken of value 0.0. Note, a change of this parameter at run time will not be applied until the next iteration.


defaultEventValue

ptolemy.data.expr.Parameter defaultEventValue
The parameter that specifies the default output event value if the input port is not connected to any thing. If the input is connected, this value is ignored. By default, it contains a DoubleToken of value 0.0.


useEventValue

ptolemy.data.expr.Parameter useEventValue
The parameter that indicates whether to use the default event value.


_level

double _level

_errorTolerance

double _errorTolerance

_eventMissed

boolean _eventMissed

_refineStep

double _refineStep

_lastTrigger

double _lastTrigger

_thisTrigger

double _thisTrigger

_enabled

boolean _enabled

_eventNow

boolean _eventNow

_first

boolean _first

_inputToken

ptolemy.data.Token _inputToken

_levelChanged

boolean _levelChanged

Class ptolemy.domains.ct.lib.LinearStateSpace extends ptolemy.actor.TypedCompositeActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
Multi-input port.


output

ptolemy.actor.TypedIOPort output
Multi-output port.


stateOutput

ptolemy.actor.TypedIOPort stateOutput
State output multiport.


A

ptolemy.data.expr.Parameter A
The A matrix in the state-space representation. It must be a square matrix. The default value is [[1.0]].


B

ptolemy.data.expr.Parameter B
The B matrix in the state-space representation. The number of rows must equal to the number of rows of the A matrix. The number of columns must equal to the width of the input port. The default value is [[1.0]].


C

ptolemy.data.expr.Parameter C
The C matrix in the state-space representation. The number of columns must equal to the number of columns of the A matrix. The number of rows must equal to the width of the output port. The default value is [[1.0]].


D

ptolemy.data.expr.Parameter D
The D matrix in the state-space representation. The number of columns must equal to the width of the input port. The number of rows must equal to the width of the output port. The default value is [[0.0]].


initialStates

ptolemy.data.expr.Parameter initialStates
The initial condition for the state variables. This must be a vector (double matrix with only one row) whose length equals to the number of state variables. The default value is [0.0].


_opaque

boolean _opaque

_requestInitialization

boolean _requestInitialization

Class ptolemy.domains.ct.lib.ThresholdMonitor extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port, single port with type double.


output

ptolemy.actor.TypedIOPort output
The output port, single port with type boolean.


thresholdWidth

ptolemy.data.expr.Parameter thresholdWidth
The parameter for the width of the threshold.


thresholdCenter

ptolemy.data.expr.Parameter thresholdCenter
The parameter for the center of the threshold.


_thWidth

double _thWidth

_thCenter

double _thCenter

_first

boolean _first

_accurate

boolean _accurate

_upperBound

double _upperBound

_lowerBound

double _lowerBound

_lastInput

double _lastInput

_thisInput

double _thisInput

Class ptolemy.domains.ct.lib.TriggeredContinuousClock extends ContinuousClock implements Serializable

Serialized Fields

start

ptolemy.actor.TypedIOPort start
A port that, if connected, is used to specify when the clock starts. This port has undeclared type.


stop

ptolemy.actor.TypedIOPort stop
A port that, if connected, is used to specify when the clock stops. This port has undeclared type.

Class ptolemy.domains.ct.lib.ZeroCrossingDetector extends LevelCrossingDetector implements Serializable

Class ptolemy.domains.ct.lib.ZeroOrderHold extends Transformer implements Serializable

Serialized Fields

defaultValue

ptolemy.data.expr.Parameter defaultValue
Default output before any input has received. The default is an integer with value 0. The type of the output is set to at least this type.


_lastToken

ptolemy.data.Token _lastToken


Package ptolemy.domains.dt.kernel

Class ptolemy.domains.dt.kernel.DTDirector extends SDFDirector implements Serializable

Serialized Fields

period

ptolemy.data.expr.Parameter period
The period of the model. This parameter must contain a DoubleToken. Its default value is 1.0 . For homogeneous hierarchical DT (i.e. DT inside DT) , the period of the inside director cannot be set explicitly by the user. Instead, it will have a fixed value: "outsidePeriod / repetitions ", where 'outsidePeriod' is the period of the outside director; and 'repetitions' is the firing count of the composite actor that contains the inside director. For heterogeneous hierarchical DT (i.e. DT inside DE or CT), the period parameter is used to determine how often the fireAt() method is called to request firing from the outside director.


_actorTable

java.util.ArrayList _actorTable

_receiverTable

java.util.ArrayList _receiverTable

_allActorsTable

java.util.Hashtable _allActorsTable

_formerValidTimeFired

double _formerValidTimeFired

_formerTimeFired

double _formerTimeFired

_isFiringAllowed

boolean _isFiringAllowed

_outputPortTable

java.util.ArrayList _outputPortTable

_shouldDoInternalTransferOutputs

boolean _shouldDoInternalTransferOutputs

_inputTokensAvailable

boolean _inputTokensAvailable

_shouldTransferOutputs

java.util.Map _shouldTransferOutputs


Package ptolemy.domains.fsm.kernel

Class ptolemy.domains.fsm.kernel.AbstractActionsAttribute extends Action implements Serializable

Serialized Fields

_numbers

java.util.List _numbers

_destinations

java.util.List _destinations

_destinationNames

java.util.List _destinationNames

_destinationsListVersion

long _destinationsListVersion

_parseTrees

java.util.List _parseTrees

_parseTreeEvaluator

ptolemy.data.expr.ParseTreeEvaluator _parseTreeEvaluator

_scope

ptolemy.data.expr.ParserScope _scope

Class ptolemy.domains.fsm.kernel.Action extends ptolemy.kernel.util.StringAttribute implements Serializable

Class ptolemy.domains.fsm.kernel.CommitActionsAttribute extends AbstractActionsAttribute implements Serializable

Class ptolemy.domains.fsm.kernel.FSMActor extends ptolemy.kernel.CompositeEntity implements Serializable

Serialized Fields

finalStateNames

ptolemy.kernel.util.StringAttribute finalStateNames
Attribute specifying the names of the final states of this actor. The names are separated by commas. Space characters at the beginning, the end, and around commas are ignored. Space characters within a name are preserved. For example, the value " final, my state 5" designates states "final" and "my state 5" as final.


initialStateName

ptolemy.kernel.util.StringAttribute initialStateName
Attribute specifying the name of the initial state of this actor.


_currentState

State _currentState

_inputTokenMap

java.util.Map _inputTokenMap

_lastChosenTransition

Transition _lastChosenTransition

_stopRequested

boolean _stopRequested
Indicator that a stop has been requested by a call to stop().


_connectionMaps

java.util.Map _connectionMaps

_connectionMapsVersion

long _connectionMapsVersion

_currentConnectionMap

java.util.Map _currentConnectionMap

_initialState

State _initialState

_initialStateVersion

long _initialStateVersion

_identifierToPort

java.util.HashMap _identifierToPort

_inputVariableVersion

long _inputVariableVersion

_finalStateNames

java.util.HashSet _finalStateNames

_reachedFinalState

boolean _reachedFinalState

_HDFFSMActor

boolean _HDFFSMActor

_newIteration

boolean _newIteration

_hdfArrays

java.util.Hashtable _hdfArrays

_functionDependency

ptolemy.actor.util.FunctionDependency _functionDependency

Class ptolemy.domains.fsm.kernel.FSMDirector extends ptolemy.actor.Director implements Serializable

Serialized Fields

controllerName

ptolemy.kernel.util.StringAttribute controllerName
Attribute specifying the name of the mode controller in the container of this director. This director must have a mode controller that has the same container as this director, otherwise an IllegalActionException will be thrown when action methods of this director are called.


_currentLocalReceiverMap

java.util.Map _currentLocalReceiverMap

_enabledRefinements

java.util.List _enabledRefinements

_firstFire

boolean _firstFire

_fireRefinement

boolean _fireRefinement

_localReceiverMaps

java.util.Map _localReceiverMaps

_controller

FSMActor _controller

_controllerVersion

long _controllerVersion

_localReceiverMapsVersion

long _localReceiverMapsVersion

_enabledTransition

Transition _enabledTransition

Class ptolemy.domains.fsm.kernel.HSDirector extends FSMDirector implements Serializable

Serialized Fields

_ctrl

FSMActor _ctrl

_st

State _st

_transitionAccurate

boolean _transitionAccurate

_distanceToBoundary

double _distanceToBoundary

_lastDistanceToBoundary

double _lastDistanceToBoundary

_lastStepSize

double _lastStepSize

_enabledTransition

Transition _enabledTransition

_lastTransitionAccurate

boolean _lastTransitionAccurate

Class ptolemy.domains.fsm.kernel.InterfaceAutomaton extends FSMActor implements Serializable

Serialized Fields

NAME_CONNECTOR

java.lang.String NAME_CONNECTOR
See Also:
Constant Field Values

_inputNames

java.util.Set _inputNames

_outputNames

java.util.Set _outputNames

_internalNames

java.util.Set _internalNames

_illegalStates

java.util.Set _illegalStates

Class ptolemy.domains.fsm.kernel.InterfaceAutomatonTransition extends Transition implements Serializable

Serialized Fields

label

ptolemy.kernel.util.StringAttribute label
The label of this transition. Must ends with "?" or "!" or ";"

Class ptolemy.domains.fsm.kernel.MultipleEnabledTransitionsException extends ptolemy.kernel.util.IllegalActionException implements Serializable

Class ptolemy.domains.fsm.kernel.OutputActionsAttribute extends AbstractActionsAttribute implements Serializable

Class ptolemy.domains.fsm.kernel.RelationList extends ptolemy.kernel.util.Attribute implements Serializable

Serialized Fields

_maximumDifferenceIndex

int _maximumDifferenceIndex

_relationList

java.util.LinkedList _relationList

Class ptolemy.domains.fsm.kernel.State extends ptolemy.kernel.ComponentEntity implements Serializable

Serialized Fields

incomingPort

ptolemy.kernel.ComponentPort incomingPort
The port linking incoming transitions.


outgoingPort

ptolemy.kernel.ComponentPort outgoingPort
The port linking outgoing transitions.


refinementName

ptolemy.kernel.util.StringAttribute refinementName
Attribute specifying one or more names of refinements. The refinements must be instances of TypedActor and have the same container as the FSMActor containing this state, otherwise an exception will be thrown when getRefinement() is called. Usually, the refinement is a single name. However, if a comma-separated list of names is provided, then all the specified refinements will be executed. This attribute has a null expression or a null string as expression when the state is not refined.


_nonpreemptiveTransitionList

java.util.List _nonpreemptiveTransitionList

_preemptiveTransitionList

java.util.List _preemptiveTransitionList

_refinement

ptolemy.actor.TypedActor[] _refinement

_refinementVersion

long _refinementVersion

_transitionListVersion

long _transitionListVersion

Class ptolemy.domains.fsm.kernel.Transition extends ptolemy.kernel.ComponentRelation implements Serializable

Serialized Fields

exitAngle

ptolemy.data.expr.Parameter exitAngle
Attribute the exit angle of a visual rendition. This parameter contains a DoubleToken, initially with value PI/5. It must lie between -PI and PI. Otherwise, it will be truncated to lie within this range.


gamma

ptolemy.data.expr.Parameter gamma
Attribute giving the orientation of a self-loop. This is equal to the tangent at the midpoint (more or less). This parameter contains a DoubleToken, initially with value 0.0.


guardExpression

ptolemy.kernel.util.StringAttribute guardExpression
Attribute specifying the guard expression.


outputActions

OutputActionsAttribute outputActions
The action commands that produce outputs when the transition is taken.


preemptive

ptolemy.data.expr.Parameter preemptive
Parameter specifying whether this transition is preemptive.


reset

ptolemy.data.expr.Parameter reset
Parameter specifying whether the refinement of the destination state is reset when the transition is taken.


setActions

CommitActionsAttribute setActions
The action commands that set parameters when the transition is taken.


triggerExpression

ptolemy.kernel.util.StringAttribute triggerExpression
Attribute specifying the trigger expression.


refinementName

ptolemy.kernel.util.StringAttribute refinementName
Attribute specifying one or more names of refinements. The refinements must be instances of TypedActor and have the same container as the FSMActor containing this state, otherwise an exception will be thrown when getRefinement() is called. Usually, the refinement is a single name. However, if a comma-separated list of names is provided, then all the specified refinements will be executed. This attribute has a null expression or a null string as expression when the state is not refined.


_actionListsVersion

long _actionListsVersion

_choiceActionList

java.util.List _choiceActionList

_commitActionList

java.util.List _commitActionList

_destinationState

State _destinationState

_exeDirectorIsHSDirector

boolean _exeDirectorIsHSDirector

_guardParseTree

ptolemy.data.expr.ASTPtRootNode _guardParseTree

_preemptive

boolean _preemptive

_sourceState

State _sourceState

_stateVersion

long _stateVersion

_triggerParseTree

ptolemy.data.expr.ASTPtRootNode _triggerParseTree

_refinement

ptolemy.actor.TypedActor[] _refinement

_refinementVersion

long _refinementVersion

_relationList

RelationList _relationList

_parseTreeEvaluator

ptolemy.data.expr.ParseTreeEvaluator _parseTreeEvaluator


Package ptolemy.domains.fsm.modal

Class ptolemy.domains.fsm.modal.ModalController extends FSMActor implements Serializable

Serialized Fields

_mirrorDisable

boolean _mirrorDisable
Indicator that we are processing a newPort request.

Class ptolemy.domains.fsm.modal.ModalModel extends CTCompositeActor implements Serializable

Serialized Fields

directorClass

ptolemy.kernel.util.StringAttribute directorClass
A director className string, configured using a ChoiceStyle attribute.


modalDirectorClassNames

java.lang.String[] modalDirectorClassNames
Class names of directors compatible with this ModalModel. Derived classes should override this if they desire additional or different directors.


_controller

FSMActor _controller
The FSM controller.


_directorChanged

boolean _directorChanged

_functionDependency

FunctionDependencyOfModalModel _functionDependency

Class ptolemy.domains.fsm.modal.ModalPort extends ptolemy.actor.TypedIOPort implements Serializable

Class ptolemy.domains.fsm.modal.Refinement extends CTCompositeActor implements Serializable

Serialized Fields

_mirrorDisable

boolean _mirrorDisable
Indicator that we are processing a newPort request.

Class ptolemy.domains.fsm.modal.RefinementPort extends ptolemy.actor.TypedIOPort implements Serializable

Serialized Fields

_mirrorDisable

boolean _mirrorDisable
If false, then changes the port are mirrored in the container's container.

Class ptolemy.domains.fsm.modal.TransitionRefinement extends Refinement implements Serializable

Class ptolemy.domains.fsm.modal.TransitionRefinementPort extends RefinementPort implements Serializable

Serialized Fields

_hasSibling

boolean _hasSibling
Flag indicating if this port has a sibling, should be set for all output ports and their associated input port siblings


Package ptolemy.domains.sdf.kernel

Class ptolemy.domains.sdf.kernel.BaseSDFScheduler extends ptolemy.actor.sched.Scheduler implements Serializable

Class ptolemy.domains.sdf.kernel.SDFDirector extends ptolemy.actor.sched.StaticSchedulingDirector implements Serializable

Serialized Fields

allowDisconnectedGraphs

ptolemy.data.expr.Parameter allowDisconnectedGraphs
A parameter representing whether disconnected graphs are permitted. A model may have two or more graphs of actors that are not connected. The schedule can jump from one graph to another among the disconnected graphs. There is nothing to force the scheduler to finish executing all actors on one graph before firing actors on another graph. However, the order of execution within an graph should be correct. Usually, disconnected graphs in an SDF model indicates an error. The default value is a BooleanToken with the value false.


allowRateChanges

ptolemy.data.expr.Parameter allowRateChanges
A parameter representing whether dynamic rate changes are permitted. An SDF model may constructed such that the values of rate parameters are modified during the execution of the system. If this parameter is false, then such models are valid and this class dynamically computes a new schedule at runtime. If this parameter is true, then the SDF domain performs a static check to disallow such models. Note that in order to generate code from an SDF model, this parameter must be set to true. The default value is a BooleanToken with the value true.


iterations

ptolemy.data.expr.Parameter iterations
A Parameter representing the number of times that postfire may be called before it returns false. If the value is less than or equal to zero, then the execution will never return false in postfire, and thus the execution can continue forever. Note that the amount of data processed by the SDF model is a function of both this parameter and the value of parameter vectorizationFactor, since vectorizationFactor can influence the choice of schedule. The default value is an IntToken with the value zero.


vectorizationFactor

ptolemy.data.expr.Parameter vectorizationFactor
A Parameter representing the requested vectorization factor. The director will attempt to construct a schedule where each actor fires vectorizationFactor times more often than it would in a minimal schedule. This can allow actor executions to be grouped together, resulting in faster execution. This is more likely to be possible in graphs without tight feedback. This parameter must be a positive integer. The default value is an IntToken with the value one.


_iterationCount

int _iterationCount

Class ptolemy.domains.sdf.kernel.SDFIOPort extends ptolemy.actor.TypedIOPort implements Serializable

Serialized Fields

tokenConsumptionRate

ptolemy.data.expr.Parameter tokenConsumptionRate
Deprecated. 
The number of tokens consumed on this port each firing.


tokenInitProduction

ptolemy.data.expr.Parameter tokenInitProduction
Deprecated. 
The number of tokens produced on this port during initialization.


tokenProductionRate

ptolemy.data.expr.Parameter tokenProductionRate
Deprecated. 
The number of tokens produced on this port each firing.

Class ptolemy.domains.sdf.kernel.SDFScheduler extends BaseSDFScheduler implements Serializable

Serialized Fields

_firingVector

java.util.Map _firingVector

_firingVectorValid

boolean _firingVectorValid

_minusOne

ptolemy.math.Fraction _minusOne

_externalRates

java.util.Map _externalRates

_rateVariables

java.util.List _rateVariables


Package ptolemy.domains.sdf.lib

Class ptolemy.domains.sdf.lib.ArrayToSequence extends SDFTransformer implements Serializable

Serialized Fields

arrayLength

ptolemy.data.expr.Parameter arrayLength
The size of the input array. This is an integer that defaults to 1.


enforceArrayLength

ptolemy.data.expr.Parameter enforceArrayLength
If true, then enforce the arrayLength parameter by throwing an exception if it is violated. This is a boolean that defaults to true.

Class ptolemy.domains.sdf.lib.Autocorrelation extends SDFTransformer implements Serializable

Serialized Fields

biased

ptolemy.data.expr.Parameter biased
If true, the estimate will be biased. This is a boolean with default value false.


numberOfInputs

ptolemy.data.expr.Parameter numberOfInputs
Number of input samples to average. This is an integer with default value 256.


numberOfLags

ptolemy.data.expr.Parameter numberOfLags
Number of autocorrelation lags to output. This is an integer with default value 64.


symmetricOutput

ptolemy.data.expr.Parameter symmetricOutput
If true, then the output from each firing will have 2*numberOfLags + 1 samples (an odd number) whose values are symmetric about the midpoint. If false, then the output from each firing will have 2*numberOfLags samples (an even number) by omitting one of the endpoints (the last one). This is a boolean with default value false.


_numberOfInputs

int _numberOfInputs

_numberOfLags

int _numberOfLags

_lengthOfOutput

int _lengthOfOutput

_symmetricOutput

boolean _symmetricOutput

_outputs

ptolemy.data.Token[] _outputs

Class ptolemy.domains.sdf.lib.BitsToInt extends SDFConverter implements Serializable

Serialized Fields

numberOfBits

ptolemy.data.expr.Parameter numberOfBits
The number of bits that is converted to the output integer. It should be a positive integer no more than 32.

Class ptolemy.domains.sdf.lib.Chop extends SDFTransformer implements Serializable

Serialized Fields

numberToRead

ptolemy.data.expr.Parameter numberToRead
The number of input tokens to read. This is an integer, with default 128.


numberToWrite

ptolemy.data.expr.Parameter numberToWrite
The number of tokens to write to the output. This is an integer, with default 64.


offset

ptolemy.data.expr.Parameter offset
Start of output block relative to start of input block. This is an integer, with default 0.


usePastInputs

ptolemy.data.expr.Parameter usePastInputs
If offset is greater than 0, specify whether to use previously read inputs (otherwise use zeros). This is a boolean, with default true.


_highLimit

int _highLimit

_inputIndex

int _inputIndex

_lowLimit

int _lowLimit

_numberToRead

int _numberToRead

_numberToWrite

int _numberToWrite

_offsetValue

int _offsetValue

_buffer

ptolemy.data.Token[] _buffer

_pastBuffer

ptolemy.data.Token[] _pastBuffer

_usePast

boolean _usePast

_pastNeedsInitializing

boolean _pastNeedsInitializing

Class ptolemy.domains.sdf.lib.CountTrues extends SDFTransformer implements Serializable

Serialized Fields

blockSize

ptolemy.data.expr.Parameter blockSize
The number of input tokens to read before outputting a count. The input is of type integer and has a default value of 1.

Class ptolemy.domains.sdf.lib.DelayLine extends SDFTransformer implements Serializable

Serialized Fields

initialValues

ptolemy.data.expr.Parameter initialValues
The initial values of the delay line. This parameter must contain an ArrayToken. The default value is an array that contains 4 integer tokens. Changes to this parameter after initialize() has been invoked are ignored until the next execution of the model.


_delayLine

ptolemy.data.Token[] _delayLine

Class ptolemy.domains.sdf.lib.DotProduct extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input1

ptolemy.actor.TypedIOPort input1
The first input port. This has type ArrayToken. The elements of the ArrayToken must be of type ScalarToken.


input2

ptolemy.actor.TypedIOPort input2
The second input port. This has type ArrayToken. The elements of the ArrayToken must be of type ScalarToken.


output

ptolemy.actor.TypedIOPort output
The output port, which has type ScalarToken.

Class ptolemy.domains.sdf.lib.DoubleToMatrix extends SDFConverter implements Serializable

Serialized Fields

columns

ptolemy.data.expr.Parameter columns
Deprecated. 
The number of columns. It is of type integer and has a default value of 2. It must be greater than zero.


rows

ptolemy.data.expr.Parameter rows
Deprecated. 
The number of rows. It is of type integer and has a default value of 2. It must be greater than zero.


_rows

int _rows
Deprecated. 

_columns

int _columns
Deprecated. 

Class ptolemy.domains.sdf.lib.DownSample extends SDFTransformer implements Serializable

Serialized Fields

factor

ptolemy.data.expr.Parameter factor
The number of input tokens to read per output token produced. This is an integer that defaults to 2 and must be greater than zero.


phase

ptolemy.data.expr.Parameter phase
The phase of the output with respect to the input. This is an integer that defaults to 0 and must be between 0 and factor-1. If phase = 0, the most recent sample is the output, while if phase = factor-1 the oldest sample is the output.

Class ptolemy.domains.sdf.lib.FFT extends SDFTransformer implements Serializable

Serialized Fields

order

ptolemy.data.expr.Parameter order
The order of the FFT. The type is IntToken, and the value should be greater than zero. The default value is an IntToken with value 8.


_transformSize

int _transformSize

_orderValue

int _orderValue

_inComplexArray

ptolemy.math.Complex[] _inComplexArray

_outTokenArray

ptolemy.data.ComplexToken[] _outTokenArray

Class ptolemy.domains.sdf.lib.FIR extends SDFTransformer implements Serializable

Serialized Fields

decimation

ptolemy.data.expr.Parameter decimation
The decimation ratio of the filter. This must contain an IntToken, and by default it has value one.


decimationPhase

ptolemy.data.expr.Parameter decimationPhase
The decimation phase of the filter. This must contain an IntToken, and by default it has value zero.


interpolation

ptolemy.data.expr.Parameter interpolation
The interpolation ratio of the filter. This must contain an IntToken, and by default it has value one.


taps

ptolemy.data.expr.Parameter taps
The taps of the filter. This has a type of ArrayToken. By default, it contains an array with a single integer one, meaning that the output of the filter is the same as the input.


_data

ptolemy.data.Token[] _data
The delay line.


_mostRecent

int _mostRecent
The index into the delay line of the most recent input.


_phaseLength

int _phaseLength
The phaseLength is ceiling(length/interpolation), where length is the number of taps.


_decimationValue

int _decimationValue
Decimation value.


_interpolationValue

int _interpolationValue
Interpolation value.


_decimationPhaseValue

int _decimationPhaseValue
DecimationPhase value.


_reinitializeNeeded

boolean _reinitializeNeeded
Indicator that at least one attribute has been changed since the last initialization.


_taps

ptolemy.data.Token[] _taps
Local cache of the tap values.


_zero

ptolemy.data.Token _zero
Local cache of the zero token.


_outToken

ptolemy.data.Token _outToken

_tapItem

ptolemy.data.Token _tapItem

_dataItem

ptolemy.data.Token _dataItem

Class ptolemy.domains.sdf.lib.IFFT extends SDFTransformer implements Serializable

Serialized Fields

order

ptolemy.data.expr.Parameter order
The order of the IFFT. The type is IntToken, and the value should be greater than zero. The default value is an IntToken with value 8.


_transformSize

int _transformSize

_orderValue

int _orderValue

_outTokenArray

ptolemy.data.ComplexToken[] _outTokenArray

_inComplexArray

ptolemy.math.Complex[] _inComplexArray

Class ptolemy.domains.sdf.lib.IntToBits extends SDFConverter implements Serializable

Serialized Fields

numberOfBits

ptolemy.data.expr.Parameter numberOfBits
The number of Boolean tokens that the input integer is coverted to.

Class ptolemy.domains.sdf.lib.LineCoder extends SDFTransformer implements Serializable

Serialized Fields

table

ptolemy.data.expr.Parameter table
The code table. Its value is a token of type ArrayToken. The array provides the symbol values to produce on the output. The number of values in this array must be at least 2wordLength, or an exception will be thrown. The number of tokens consumed by this actor when it fires is log2(tableSize), where tableSize is the length of the table. If all of these values are false, then the first array entry is produced as an output. If only the first one is true, then then second array value is produced. In general, the N inputs consumed are taken to be a binary digit that indexes the array, where the first input is taken to be the low-order bit of the array. The default code table has two entries, -1.0 and 1.0, so that input false values are mapped to -1.0, and input true values are mapped to +1.0.


wordLength

ptolemy.data.expr.Parameter wordLength
The word length is the number of boolean inputs that are consumed to construct an index into the table. Its value is an IntToken, with default value one.


_wordLength

int _wordLength

_table

ptolemy.data.Token[] _table

Class ptolemy.domains.sdf.lib.LMSAdaptive extends FIR implements Serializable

Serialized Fields

error

ptolemy.actor.TypedIOPort error
The error input port. The type of this port must match that of the input port.


errorDelay

ptolemy.data.expr.Parameter errorDelay
The number of samples of delay in the feedback loop that brings the error back. This has a type integer, and defaults to 1.


initialTaps

ptolemy.data.expr.Parameter initialTaps
The initial taps of the filter. This has a type of ArrayToken. By default, it contains the array {1.0, 0.0, 0.0, 0.0}, meaning that the output of the filter is initially the same as the input, and that the adaptive filter has four taps.


stepSize

ptolemy.data.expr.Parameter stepSize
The adaptation step size. This must have a type that can be multiplied by the input. It defaults to 0.01, a double.


tapValues

ptolemy.actor.TypedIOPort tapValues
The output of tap values. This has the same type as the initialTaps.

Class ptolemy.domains.sdf.lib.MatrixToDouble extends SDFConverter implements Serializable

Serialized Fields

columns

ptolemy.data.expr.Parameter columns
Deprecated. 
The number of columns. It is of type integer and has a default value of 2. It must be greater than zero. This information is only used if the actor is under the control of an SDFDirector.


rows

ptolemy.data.expr.Parameter rows
Deprecated. 
The number of rows. It is of type integer and has a default value of 2. It must be greater than zero. This information is only used if the actor is under the control of an SDFDirector.


_rows

int _rows
Deprecated. 

_columns

int _columns
Deprecated. 

Class ptolemy.domains.sdf.lib.MatrixToSequence extends SDFTransformer implements Serializable

Serialized Fields

rows

ptolemy.data.expr.Parameter rows
The number of rows in the input. This is an integer that defaults to 1.


columns

ptolemy.data.expr.Parameter columns
The number of columns in the input. This is an integer that defaults to 1.


enforceMatrixSize

ptolemy.data.expr.Parameter enforceMatrixSize
If true, then enforce the rows and columns parameters by throwing an exception if it is violated. This is a boolean that defaults to true.

Class ptolemy.domains.sdf.lib.RaisedCosine extends FIR implements Serializable

Serialized Fields

excessBW

ptolemy.data.expr.Parameter excessBW
The excess bandwidth. This contains a DoubleToken, and by default it has value 1.0.


length

ptolemy.data.expr.Parameter length
The length of the pulse. This contains an IntToken, and by default it has value 64.


root

ptolemy.data.expr.Parameter root
If true, use the square root of the raised cosine instead of the raised cosine. This contains a BooleanToken, and by default it has value false.


symbolInterval

ptolemy.data.expr.Parameter symbolInterval
The symbol interval, which is the number of samples to the first zero crossing on each side of the main lobe. Its value is an IntToken, and by default it has value 16.

Class ptolemy.domains.sdf.lib.Repeat extends SDFTransformer implements Serializable

Serialized Fields

numberOfTimes

ptolemy.data.expr.Parameter numberOfTimes
The repetition factor. It is of type integer and has a default value of 2. It must be greater than zero.


blockSize

ptolemy.data.expr.Parameter blockSize
The number of tokens in a block. It is of type integer and has a default value of 1. It must be greater than zero.

Class ptolemy.domains.sdf.lib.SampleDelay extends SDFTransformer implements Serializable

Serialized Fields

initialOutputs

ptolemy.data.expr.Parameter initialOutputs
The values that will be produced in the initialize method. This parameter must contain an ArrayToken. It defaults to contain a single zero-valued integer token. Changes to this parameter after initialize() has been invoked are ignored until the next execution of the model.


_outputsArray

ptolemy.data.ArrayToken _outputsArray

Class ptolemy.domains.sdf.lib.SDFConverter extends SDFTransformer implements Serializable

Class ptolemy.domains.sdf.lib.SDFTransformer extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

input

ptolemy.actor.TypedIOPort input
The input port. This base class imposes no type constraints except that the type of the input cannot be greater than the type of the output.


input_tokenConsumptionRate

ptolemy.data.expr.Parameter input_tokenConsumptionRate
The rate parameter for the input port.


output

ptolemy.actor.TypedIOPort output
The output port. By default, the type of this output is constrained to be at least that of the input.


output_tokenProductionRate

ptolemy.data.expr.Parameter output_tokenProductionRate
The rate parameter for the output port.


output_tokenInitProduction

ptolemy.data.expr.Parameter output_tokenInitProduction
The rate parameter for the output port that declares the initial production.

Class ptolemy.domains.sdf.lib.SequenceToArray extends SDFTransformer implements Serializable

Serialized Fields

arrayLength

PortParameter arrayLength
The size of the output array. This is an integer that defaults to 1.

Class ptolemy.domains.sdf.lib.SequenceToMatrix extends SDFTransformer implements Serializable

Serialized Fields

rows

ptolemy.data.expr.Parameter rows
The number of rows in the output. This is an integer that defaults to 1.


columns

ptolemy.data.expr.Parameter columns
The number of columns in the output. This is an integer that defaults to 1.

Class ptolemy.domains.sdf.lib.UpSample extends SDFTransformer implements Serializable

Serialized Fields

factor

ptolemy.data.expr.Parameter factor
The number of output tokens to produced per input token read. This is an integer that defaults to 2 and must be greater than zero.


phase

ptolemy.data.expr.Parameter phase
The phase of the output with respect to the input. This is an integer that defaults to factor-1 and must be between 0 and factor-1. If phase = 0, the input is the first output, while if phase = factor-1 then the input is the last output.

Class ptolemy.domains.sdf.lib.VariableFIR extends FIR implements Serializable

Serialized Fields

blockSize

ptolemy.data.expr.Parameter blockSize
The number of inputs that use each each coefficient set is the value of this parameter multiplied by the value of the decimation parameter. This is an integer that defaults to 1.


newTaps

ptolemy.actor.TypedIOPort newTaps
The input for new tap values. This is an array.

Class ptolemy.domains.sdf.lib.VariableLattice extends Lattice implements Serializable

Serialized Fields

blockSize

ptolemy.data.expr.Parameter blockSize
The number of inputs that use each each coefficient set. This is an integer that defaults to 1.


newCoefficients

ptolemy.actor.TypedIOPort newCoefficients
The input for new coefficient values. This is an array of doubles.


input_tokenConsumptionRate

ptolemy.data.expr.Parameter input_tokenConsumptionRate
The parameter that gives the number of tokens consumed by the input port. This is set equal to blockSize.


output_tokenProductionRate

ptolemy.data.expr.Parameter output_tokenProductionRate
The parameter that gives the number of tokens produces by the output port. This is set equal to blockSize.


_blockSizeValue

int _blockSizeValue

Class ptolemy.domains.sdf.lib.VariableRecursiveLattice extends RecursiveLattice implements Serializable

Serialized Fields

blockSize

ptolemy.data.expr.Parameter blockSize
The number of inputs that use each each coefficient set. This is an integer that defaults to 1.


newCoefficients

ptolemy.actor.TypedIOPort newCoefficients
The input for new coefficient values. The type is an array of doubles.


input_tokenConsumptionRate

ptolemy.data.expr.Parameter input_tokenConsumptionRate
The number of tokens consumed from the input port.


output_tokenProductionRate

ptolemy.data.expr.Parameter output_tokenProductionRate
The number of tokens produced from the output port.


_blockSizeValue

int _blockSizeValue


Package ptolemy.domains.sdf.lib.vq

Class ptolemy.domains.sdf.lib.vq.HTVQEncode extends Transformer implements Serializable

Serialized Fields

codeBook

ptolemy.data.expr.Parameter codeBook
A Parameter of type String, giving the location of the codebook data file relative to the root classpath.


blockCount

ptolemy.data.expr.Parameter blockCount
The number of blocks to be encoded during each firing. The default value is one, which will always work, but using a higher number (such as the number of blocks in a frame) will speed things up.


blockWidth

ptolemy.data.expr.Parameter blockWidth
The width, in pixels, of the block to encode.


blockHeight

ptolemy.data.expr.Parameter blockHeight
The width, in pixels, of the block to encode.


input_tokenConsumptionRate

ptolemy.data.expr.Parameter input_tokenConsumptionRate
The input rate


output_tokenProductionRate

ptolemy.data.expr.Parameter output_tokenProductionRate
The output rate


ipbuf_encodep1

int[][] ipbuf_encodep1

ipbuf_encodep2

int[][] ipbuf_encodep2

_codeBook

int[][][] _codeBook

_lookupTable

int[][] _lookupTable

_codewords

ptolemy.data.IntToken[] _codewords

_blocks

ptolemy.data.Token[] _blocks

_blockCount

int _blockCount

_blockWidth

int _blockWidth

_blockHeight

int _blockHeight

Class ptolemy.domains.sdf.lib.vq.ImageContrast extends Transformer implements Serializable

Serialized Fields

colorHistogram

int[] colorHistogram

Class ptolemy.domains.sdf.lib.vq.ImageDisplay extends Sink implements Serializable

Serialized Fields

_picture

ptolemy.media.Picture _picture

_frame

javax.swing.JFrame _frame

_container

java.awt.Container _container

_oldXSize

int _oldXSize

_oldYSize

int _oldYSize

_RGBbuffer

int[] _RGBbuffer

Class ptolemy.domains.sdf.lib.vq.ImagePartition extends Transformer implements Serializable

Serialized Fields

imageColumns

ptolemy.data.expr.Parameter imageColumns
The width of the input matrices


imageRows

ptolemy.data.expr.Parameter imageRows
The height of the input matrices


partitionColumns

ptolemy.data.expr.Parameter partitionColumns
The width of the input partitions


partitionRows

ptolemy.data.expr.Parameter partitionRows
The height of the input partitions


output_tokenProductionRate

ptolemy.data.expr.Parameter output_tokenProductionRate
The output rate


_partitions

ptolemy.data.IntMatrixToken[] _partitions

_part

int[][] _part

_imageColumns

int _imageColumns

_imageRows

int _imageRows

_partitionColumns

int _partitionColumns

_partitionRows

int _partitionRows

Class ptolemy.domains.sdf.lib.vq.ImageSequence extends Source implements Serializable

Serialized Fields

imageURLTemplate

ptolemy.data.expr.Parameter imageURLTemplate
The image filename templates.


imageColumns

ptolemy.data.expr.Parameter imageColumns
The number of columns in each image.


imageRows

ptolemy.data.expr.Parameter imageRows
The number of rows in each image.


startFrame

ptolemy.data.expr.Parameter startFrame
The starting frame number.


endFrame

ptolemy.data.expr.Parameter endFrame
The ending frame number.


_frameCount

int _frameCount

_images

ptolemy.data.IntMatrixToken[] _images

_frameBytes

byte[] _frameBytes

_frameInts

int[][] _frameInts

_imageURLTemplate

int _imageURLTemplate

_imageColumns

int _imageColumns

_imageRows

int _imageRows

_startFrame

int _startFrame

_endFrame

int _endFrame

_frameNumber

int _frameNumber

Class ptolemy.domains.sdf.lib.vq.ImageUnpartition extends Transformer implements Serializable

Serialized Fields

imageColumns

ptolemy.data.expr.Parameter imageColumns
The width of the input matrices


imageRows

ptolemy.data.expr.Parameter imageRows
The height of the input matrices


partitionColumns

ptolemy.data.expr.Parameter partitionColumns
The width of the input partitions


partitionRows

ptolemy.data.expr.Parameter partitionRows
The height of the input partitions


input_tokenConsumptionRate

ptolemy.data.expr.Parameter input_tokenConsumptionRate
The input rate


_image

int[][] _image

_imageColumns

int _imageColumns

_imageRows

int _imageRows

_partitionColumns

int _partitionColumns

_partitionRows

int _partitionRows

_partitionCount

int _partitionCount

Class ptolemy.domains.sdf.lib.vq.PSNR extends ptolemy.actor.TypedAtomicActor implements Serializable

Serialized Fields

signal

ptolemy.actor.TypedIOPort signal
The input signal.


distortedSignal

ptolemy.actor.TypedIOPort distortedSignal
A distorted version of the input signal.


output

ptolemy.actor.TypedIOPort output
The calculated PSNR between the two inputs.

Class ptolemy.domains.sdf.lib.vq.VQDecode extends Transformer implements Serializable

Serialized Fields

codeBook

ptolemy.data.expr.Parameter codeBook
A Parameter of type String, giving the location of the codebook data file relative to the root classpath.


blockCount

ptolemy.data.expr.Parameter blockCount
The number of blocks to be decoded during each firing. The default value is one, which will always work, but using a higher number (such as the number of blocks in a frame) will speed things up. This should contain an integer.


blockWidth

ptolemy.data.expr.Parameter blockWidth
The width, in integer pixels, of the block to decode.


blockHeight

ptolemy.data.expr.Parameter blockHeight
The width, in integer pixels, of the block to decode.


input_tokenConsumptionRate

ptolemy.data.expr.Parameter input_tokenConsumptionRate
The input rate


output_tokenProductionRate

ptolemy.data.expr.Parameter output_tokenProductionRate
The output rate


_codebook

int[][][][] _codebook

_codewords

ptolemy.data.Token[] _codewords

_blocks

ptolemy.data.IntMatrixToken[] _blocks

_blockCount

int _blockCount

_blockWidth

int _blockWidth

_blockHeight

int _blockHeight


Package ptolemy.hsif

Class ptolemy.hsif.HSIFEffigyFactory extends ptolemy.actor.gui.EffigyFactory implements Serializable

Serialized Fields

_inCreateEffigy

boolean _inCreateEffigy


Package ptolemy.util

Class ptolemy.util.CancelException extends java.lang.Exception implements Serializable


Package ptolemy.vergil.fsm.modal

Class ptolemy.vergil.fsm.modal.HierarchicalStateControllerFactory extends ptolemy.vergil.basic.NodeControllerFactory implements Serializable

Class ptolemy.vergil.fsm.modal.ModalTableauFactory extends ptolemy.actor.gui.TableauFactory implements Serializable