Package eu.bandm.sighkn
Class TriggerDemux
java.lang.Object
eu.bandm.sig.adlib.IntClockedSignalSource
eu.bandm.sighkn.TriggerDemux
- All Implemented Interfaces:
CompilableControlFlow,CompilableDataFlow,IntSignalSource,Realtime,SignalSource<Integer>,Runnable,IntSupplier,Supplier<Integer>
A small device which derives a gate from a trigger, which holds the given duration.
A trigger is (as usual) recognized on a change of its int value.
The first trigger value must be != 0.
The duration signal source is sampled once, when the trigger is active.
-
Nested Class Summary
Nested 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 intprotected intprotected intprotected int[]protected final IntSignalSourceFields inherited from class eu.bandm.sig.adlib.IntClockedSignalSource
outFields inherited from interface eu.bandm.sig.adlib.Realtime
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class eu.bandm.sig.adlib.IntClockedSignalSource
compileDataFlow, counter, counter, counter, get, getAsInt, logged, logged, suppliedBy, suppliedByMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.bandm.sig.adlib.IntSignalSource
logger, logger, zipWithMethods inherited from interface eu.bandm.sig.adlib.Realtime
afap, afap, andThen, asAsynchronousSwingEvent, compileControlFlow, every, every, frequently, frequently, frequently, times, times
-
Field Details
-
trigger
-
count
protected final int count -
outs
protected int[] outs -
lastEvent
protected int lastEvent -
lastOut
protected int lastOut
-
-
Constructor Details
-
TriggerDemux
-
-
Method Details
-
getOut
-
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.
-