Class DoubleUpsamplingSignalSource
- All Implemented Interfaces:
AbstractClockedSignalSource
,AbstractSignalSource
,CompilableControlFlow
,CompilableDataFlow
,Component
,DoubleClockedSignalSource
,DoubleSignalSource
,Process
,DoubleSupplier
FIXME: discuss compilation, also w.r.t. DoubleSignalPort
!
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.bandm.sig.adlib2.DoubleClockedSignalSource
DoubleClockedSignalSource.AbstractRandom
Nested classes/interfaces inherited from interface eu.bandm.sig.adlib2.Process
Process.Proxy
-
Field Summary
Fields inherited from class eu.bandm.sig.adlib2.DoubleStoredSignalSource
out
Fields inherited from interface eu.bandm.sig.adlib2.AbstractClockedSignalSource
STREAM_CHARACTERISTICS, STREAM_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCompiles the state transition of this process.Compiles the initialization of this process.void
init()
Initializes the state of this process.void
setValue
(double value) void
step()
Signals a time event, executing a transition step for this process to the next observable state.Methods inherited from class eu.bandm.sig.adlib2.compile.CompilableDoubleStoredSignalSource
compileDataFlow, compileSetStoredValueVariable, getStoredValueVariable, publishStoredValueVariable
Methods inherited from class eu.bandm.sig.adlib2.DoubleStoredSignalSource
getAsDouble
Methods inherited from class eu.bandm.sig.adlib2.AbstractProcess
getRealtimeContext, setRealtimeContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.bandm.sig.adlib2.compile.CompilableDataFlow
compileDataFlowTo, hasDataFlowIO
Methods inherited from interface eu.bandm.sig.adlib2.DoubleClockedSignalSource
after, compile, during, spliterator, stream
Methods inherited from interface eu.bandm.sig.adlib2.DoubleSignalSource
abs, add, asInt, compileMainSignalSource, DEBUG, defined, delayed, delayed, divide, equal, floor, getConstantAsDouble, getValueClass, glidingAverage, glidingStandardDeviation, glidingSum, glidingVariance, greaterOrEqual, greaterThan, guard, hasConstantAsDouble, 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
Methods inherited from interface eu.bandm.sig.adlib2.Process
afterEvery, andThen, compileAsMainProcess, every, every, getProcess, hasControlFlowIO, hasInitializationIO, setRealtimeContext
-
Constructor Details
-
DoubleUpsamplingSignalSource
-
-
Method Details
-
init
Description copied from interface:Process
Initializes the state of this process. The state is initialized such that the first subsequent call toProcess.step()
transitions to the first specified observable state.The default implementation does nothing.
-
step
Description copied from interface:Process
Signals a time event, executing a transition step for this process to the next observable state.The state of the process after successful completion of this method should be the n-th observable state, if
Process.step()
has been invoked n times since the last initialization viaProcess.init()
. The behavior of this method is unspecified ifProcess.init()
has not been invoked before.FIXME:
Process.setRealtimeContext(eu.bandm.sig.adlib2.RealtimeContext)
If this method completes abruptly by throwing an error or unchecked exception, the process state should be considered invalid.
-
compileInitialization
Description copied from interface:Process
Compiles the initialization of this process.This method emits code equivalent to the
Process.init()
method of this component. The compilation context should be set up to specify no input or output variables.The default implementation emits code that simply invokes
Process.init()
for this process.This method should be overridden together with
Process.compileControlFlow()
, in order to ensure that both operate on the same state variables.- Specified by:
compileInitialization
in interfaceCompilableControlFlow
- Specified by:
compileInitialization
in interfaceProcess
- Overrides:
compileInitialization
in classCompilableDoubleStoredSignalSource
- See Also:
-
compileControlFlow
Description copied from interface:Process
Compiles the state transition of this process.This method emits code equivalent to the
Process.step()
method of this process. The compilation context should be set up to specify no input or output variables.The default implementation emits code that simply invokes
Process.step()
for this process.This method should be overridden together with
Process.compileInitialization()
, in order to ensure that both operate on the same state variables.- Specified by:
compileControlFlow
in interfaceCompilableControlFlow
- Specified by:
compileControlFlow
in interfaceProcess
- Specified by:
compileControlFlow
in classCompilableDoubleStoredSignalSource
- See Also:
-
setValue
-
sampling
-