Package eu.bandm.sig.adlib2.lib
Class NextEvent
java.lang.Object
eu.bandm.sig.adlib2.lib.NextEvent
- All Implemented Interfaces:
AbstractClockedSignalSource,AbstractSignalSource,BooleanClockedSignalSource,BooleanSignalSource,Component,Process,BooleanSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.bandm.sig.adlib2.Process
Process.Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IntSignalSource(package private) intprotected final int(package private) booleanFields inherited from interface eu.bandm.sig.adlib2.AbstractClockedSignalSource
STREAM_CHARACTERISTICS, STREAM_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNextEvent(IntSignalSource eventNumber, int notAnEvent, @Opt Process triggered) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the current value of this signal source.voidinit()Initializes the state of this process.voidSets the realtime context of this process.voidstep()Signals a time event, executing a transition step for this process to the next observable state.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.BooleanClockedSignalSource
after, drain, drain, duringMethods inherited from interface eu.bandm.sig.adlib2.BooleanSignalSource
and, becoming, ceasing, choose, choose, choose, choose, choose, choose, choose, choose, choose, clockedAfter, delayed, delayed, getConstantAsBoolean, getValueClass, guard, hasConstantAsBoolean, invariant, map, not, or, power, probe, relateWith, sampleAndHold, stored, xor, zipWithMethods inherited from interface eu.bandm.sig.adlib2.Process
afterEvery, andThen, conditional, every, every, getProcess
-
Field Details
-
eventNumber
-
notAnEvent
protected final int notAnEvent -
triggered
-
lastNum
int lastNum -
output
boolean output
-
-
Constructor Details
-
NextEvent
-
-
Method Details
-
setRealtimeContext
Description copied from interface:ProcessSets the realtime context of this process.- Specified by:
setRealtimeContextin interfaceProcess- Parameters:
rtc- the new realtime context of this process, ornullif not specified
-
init
public void init()Description copied from interface:ProcessInitializes the state of this process. The state is initialized such that the first subsequent call toProcess.step()transitions to the first specified observable state.The default implementation does nothing.
-
step
public void step()Description copied from interface:ProcessSignals a time event, executing a transition step for this process to the next observable state.The state of the process after successful completion of this method should be the n-th observable state, if
Process.step()has been invoked n times since the last initialization viaProcess.init(). The behavior of this method is unspecified ifProcess.init()has not been invoked before.FIXME:
Process.setRealtimeContext(eu.bandm.sig.adlib2.RealtimeContext)If this method completes abruptly by throwing an error or unchecked exception, the process state should be considered invalid.
-
getAsBoolean
public boolean getAsBoolean()Description copied from interface:BooleanSignalSourceReturns 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:
getAsBooleanin interfaceBooleanSignalSource- Specified by:
getAsBooleanin interfaceBooleanSupplier- Returns:
- the current value of this signal source
-