Package eu.bandm.sighkn
Class FloatPfg
java.lang.Object
eu.bandm.sig.adlib.FloatClockedSignalSource
eu.bandm.sighkn.FloatPfg
- All Implemented Interfaces:
CompilableControlFlow,CompilableDataFlow,FloatSignalSource,FloatSupplier,Realtime,SignalSource<Float>,Runnable,Supplier<Float>
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.bandm.sig.adlib.FloatSignalSource
FloatSignalSource.CompilableFloatBinaryOperator, FloatSignalSource.FloatAddOperator, FloatSignalSource.FloatDivOperator, FloatSignalSource.FloatMultOperator, FloatSignalSource.FloatSubOperatorNested classes/interfaces inherited from interface eu.bandm.sig.adlib.SignalSource
SignalSource.AddOperator, SignalSource.CompilableBinaryOperator, SignalSource.Constant<A>, SignalSource.DivOperator, SignalSource.MultOperator, SignalSource.SubOperator -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final float[]protected final floatprotected final float[]is inc-value per run()-call.protected intprotected final int[]1=upward -1=downward 0=zero 2=timedprotected final floatprotected intprotected final intprotected floatprotected intFields inherited from class eu.bandm.sig.adlib.FloatClockedSignalSource
outFields inherited from interface eu.bandm.sig.adlib.FloatSignalSource
abs, add, clip, cos, div, E, exp, log, LOG2, metaGetAsFloat, mult, neg, PI, sin, sqrt, SQRT2, square, subFields inherited from interface eu.bandm.sig.adlib.Realtime
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean_add(float _inc, float _fin, int _mode) booleanadd_inc(float v_inc, float v_fin) booleanadd_timed(float duration, float v_fin) voidclear()voidclear(float out) protected voidcomplete()protected voidbooleanisEmpty()voidmarkLoop()Must be called before the first add_inc(..)/add_timed(..).voidrun()Processes an event.voidset(float out) Methods inherited from class eu.bandm.sig.adlib.FloatClockedSignalSource
delayedBy, delayedWith, doCompileDataFlow, get, getAsFloat, iterate, logged, logged, random, randomNormal, randomUniform, repeat, slide, suppliedBy, suppliedBy, switchOverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.bandm.sig.adlib.FloatSignalSource
add, check, clocked, compileDataFlow, div, guard, logger, logger, map, mult, sub, zipWith, zipWithMethods inherited from interface eu.bandm.sig.adlib.Realtime
afap, afap, andThen, asAsynchronousSwingEvent, compileControlFlow, every, every, frequently, frequently, frequently, times, times
-
Field Details
-
freq
protected final float freq -
period
protected final float period -
fin
protected final float[] fin -
inc
protected final float[] incis inc-value per run()-call. But in mode==2 it is time in seconds. -
mode
protected final int[] mode1=upward -1=downward 0=zero 2=timed -
size
protected final int size -
write
protected int write -
read
protected int read -
loop
protected int loop -
time
protected float time
-
-
Constructor Details
-
FloatPfg
public FloatPfg(float freq, int size)
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
run
public void run()Description copied from interface:RealtimeProcesses an event.Any implementation of this method should complete promptly and normally. In particular it must not block indefinitely.
-
clear
public void clear() -
markLoop
public void markLoop()Must be called before the first add_inc(..)/add_timed(..). -
set
public void set(float out) -
clear
public void clear(float out) -
complete
protected void complete() -
complete2
protected void complete2() -
add_inc
public boolean add_inc(float v_inc, float v_fin) -
add_timed
public boolean add_timed(float duration, float v_fin) -
_add
protected boolean _add(float _inc, float _fin, int _mode)
-