Package eu.bandm.sig.adlib2.math
Class DoubleOscillator
java.lang.Object
eu.bandm.sig.adlib2.math.DoubleOscillator
- All Implemented Interfaces:
AbstractSignalSource,CompilableDataFlow,Component,DoubleSignalSource,DoubleSupplier
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDoubleOscillator(double frequency, double phase, ConstantRealtimeContext context) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.bandm.sig.adlib2.compile.CompilableDataFlow
compileDataFlowTo, hasDataFlowIOMethods inherited from interface eu.bandm.sig.adlib2.DoubleSignalSource
abs, add, asDouble, asFloat, asInt, ceil, 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, publishStoredValueVariable, relateWith, sampleAndHold, selectAffine, series, sqrt, stored, subtract, zero, zeroCrossing, zipWith
-
Field Details
-
PI
public static final double PI- See Also:
-
-
Constructor Details
-
DoubleOscillator
-
-
Method Details
-
getProcess
Description copied from interface:ComponentReturns the delegate object that effects changes of observable state.- Specified by:
getProcessin interfaceComponent
-
getAsDouble
public double getAsDouble()Description copied from interface:DoubleSignalSourceReturns the current value of this signal source.The value may be either computed on demand, or retrieved from storage.
Implementations of this method should have no side effect.
- Specified by:
getAsDoublein interfaceDoubleSignalSource- Specified by:
getAsDoublein interfaceDoubleSupplier- Returns:
- the current value of this signal source
-
compileDataFlow
Description copied from interface:DoubleSignalSourceReturns a code generator for outputting the value of this entity.This implementation generates code to invoke
this.getAsDouble().- Specified by:
compileDataFlowin interfaceCompilableDataFlow- Specified by:
compileDataFlowin interfaceDoubleSignalSource
-
patch
-
compile
-
main
-