public abstract class BooleanClockedSignalSource extends Object implements BooleanSignalSource, SignalSource<Boolean>, Realtime
SignalSource.AddOperator, SignalSource.CompilableBinaryOperator, SignalSource.Constant<A>, SignalSource.DivOperator, SignalSource.MultOperator, SignalSource.SubOperator
Modifier and Type | Field and Description |
---|---|
protected boolean |
out |
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS
Constructor and Description |
---|
BooleanClockedSignalSource() |
Modifier and Type | Method and Description |
---|---|
static BooleanClockedSignalSource |
flipflop(int onLength,
int offLength,
int initialPhase) |
Boolean |
get() |
boolean |
getAsBoolean() |
static BooleanClockedSignalSource |
odd() |
static BooleanClockedSignalSource |
repeat(boolean... table)
Creates an object that emits a given sequence of values,
proceeding cyclically at each clock event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
constant
constant
adHoc, afap, afap, andThen, asAsynchronousSwingEvent, compileControlFlow, every, every, frequently, frequently, frequently, run, sequence, times, times
public final boolean getAsBoolean()
getAsBoolean
in interface BooleanSignalSource
public final Boolean get()
public static BooleanClockedSignalSource repeat(boolean... table)
table
- an array of the values to attain cyclicallytable[(n - 1) %
table.length]
at the n
-th clock event.public static BooleanClockedSignalSource odd()
public static BooleanClockedSignalSource flipflop(int onLength, int offLength, int initialPhase)