public class FloatUpsamplingSignalSource extends CompilableFloatStoredSignalSource
FIXME: discuss compilation, also w.r.t. FloatSignalPort
!
FloatClockedSignalSource.AbstractRandom
Process.Proxy
out
STREAM_CHARACTERISTICS, STREAM_SIZE
Constructor and Description |
---|
FloatUpsamplingSignalSource(float initialValue) |
Modifier and Type | Method and Description |
---|---|
Consumer<CompilationContext> |
compileControlFlow()
Compiles the state transition of this entity.
|
Consumer<CompilationContext> |
compileInitialization()
Compiles the initialization of this entity.
|
void |
init()
Initializes the state of this process.
|
Process |
sampling(FloatSignalSource in) |
void |
setValue(float value) |
void |
step(RealtimeContext context)
Signals a time event, executing a transition step for this process to the
next observable state.
|
compileDataFlow, compileSetStoredValueVariable, getStoredValueVariable, publishStoredValueVariable
getAsFloat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adHoc, after, clock, compile, cycle, dt, during, random, random, random, randomGaussian, randomGaussian, randomGaussian, rate
abs, add, choose, choose, choose, choose, clock, compileMainSignalSource, constant, defined, delayed, delayed, delayedFeedback, delayedFeedback, divide, equal, getConstantAsFloat, getValueClass, glidingAverage, glidingStandardDeviation, glidingSum, glidingVariance, greaterOrEqual, greaterThan, guard, hasConstantAsFloat, invariant, lessOrEqual, lessThan, map, max, min, modulo, multiply, negate, negative, nonEqual, nonnegative, nonpositive, nonzero, notANumber, positive, power, probe, relateWith, sampleAndHold, selectAffine, series, sqrt, stored, subtract, zero, zeroCrossing, zipWith
compileDataFlowTo, hasDataFlowIO
afterEvery, andThen, compileAsMainProcess, every, getProcess, hasControlFlowIO, hasInitializationIO, probe, sequence, sequence
@Undocumented public FloatUpsamplingSignalSource(float initialValue)
@Undocumented public void init()
Process
Process.step(RealtimeContext)
transitions to
the first specified observable state.
The default implementation does nothing.
@Undocumented public void step(RealtimeContext context)
Process
The state of the process after successful completion of this method
should be the n-th observable state, if Process.step(eu.bandm.sig.adlib2.RealtimeContext)
has been
invoked n times since the last initialization via Process.init()
.
The behavior of this method is unspecified if Process.init()
has not been
invoked before.
If this method completes abruptly by throwing an error or unchecked exception, the process state should be considered invalid.
context
- the realtime context information for this step@Undocumented public Consumer<CompilationContext> compileInitialization()
CompilableControlFlow
compileInitialization
in interface CompilableControlFlow
compileInitialization
in interface Process
compileInitialization
in class CompilableFloatStoredSignalSource
Process.hasInitializationIO(eu.bandm.sig.adlib2.compile.CompilationContext)
@Undocumented public Consumer<CompilationContext> compileControlFlow()
CompilableControlFlow
compileControlFlow
in interface CompilableControlFlow
compileControlFlow
in interface Process
compileControlFlow
in class CompilableFloatStoredSignalSource
Process.hasControlFlowIO(eu.bandm.sig.adlib2.compile.CompilationContext)
@Undocumented public void setValue(float value)
@Undocumented public Process sampling(FloatSignalSource in)