public abstract class SignalSourceChooser<A> extends AbstractSignalSourceChooser implements SignalSource<A>
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
SignalSourceChooser.OfEnum<E extends Enum<E>,A> |
(package private) static class |
SignalSourceChooser.OfEnumInt<E extends Enum<E>,A> |
(package private) static class |
SignalSourceChooser.OfInt<A> |
| Constructor and Description |
|---|
SignalSourceChooser() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SignalSource<A> |
choose()
Returns the chosen the input signal source for the current
value.
|
protected Consumer<CompilationContext> |
compileDefaultValue()
Returns a code generator for loading the default value of the signal type
on the operand stack.
|
A |
get()
Returns the current value of this signal source.
|
alwaysThrow, compileConvertToInt, compileDataFlow, compileOrDefault, getCases, getSelectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchoose, choose, choose, choose, clock, compileDataFlow, compileMainSignalSource, constant, constant, delayed, delayed, delayedFeedback, delayedFeedback, eq, getConstant, getValueClass, guard, hasConstant, invariant, map, map, neq, power, probe, publishStoredValueVariable, relateWith, sampleAndHold, stored, zipWithcompileDataFlowTo, hasDataFlowIOprotected abstract SignalSource<A> choose()
public A get()
The value may be either computed on demand, or retrieved from storage.
Implementations of this method should have no side effect.
protected Consumer<CompilationContext> compileDefaultValue()
AbstractSignalSourceChoosercompileDefaultValue in class AbstractSignalSourceChooser