public class SequencerListener extends Object implements SequencerSimulation.SubroutineListener, SequencerSimulation.FunctionListener, SequencerSimulation.WaveformListener, SequencerSimulation.StateListener
| Constructor and Description |
|---|
SequencerListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
functionCalled(int function,
boolean infiniteLoop,
int repetitions)
Called whenever a new function is entered.
|
long |
getAccumulatedNanos() |
long |
getChecksum() |
Map<? extends Number,? extends Number> |
getFunctionCounts() |
Map<? extends Number,? extends Number> |
getSubroutineCounts() |
Map<? extends Number,? extends Number> |
getSubroutineReturns() |
void |
stateChanged(SequencerSimulation.State oldState,
SequencerSimulation.State newState)
Called whenever the state of the sequencer changes
|
void |
subroutineCalled(int address,
int repetitions) |
void |
subroutineReturned(int address) |
void |
transition(int oldState,
int newState,
int nanos)
Called each time a function causes a change in the output waveform.
|
void |
waitForState(SequencerSimulation.State state,
Duration timeout) |
public void subroutineCalled(int address,
int repetitions)
subroutineCalled in interface SequencerSimulation.SubroutineListenerpublic void subroutineReturned(int address)
subroutineReturned in interface SequencerSimulation.SubroutineListenerpublic void functionCalled(int function,
boolean infiniteLoop,
int repetitions)
SequencerSimulation.FunctionListenerfunctionCalled in interface SequencerSimulation.FunctionListenerfunction - The index of the functioninfiniteLoop - true if the function will loop until
stop/steprepetitions - The number of repetitions of this functionpublic void waitForState(SequencerSimulation.State state, Duration timeout) throws InterruptedException, TimeoutException
InterruptedExceptionTimeoutExceptionpublic void stateChanged(SequencerSimulation.State oldState, SequencerSimulation.State newState)
SequencerSimulation.StateListenerstateChanged in interface SequencerSimulation.StateListeneroldState - The state prior to the transitionsnewState - The state after the transitionpublic void transition(int oldState,
int newState,
int nanos)
SequencerSimulation.WaveformListenertransition in interface SequencerSimulation.WaveformListeneroldState - The state of the outputs before the transitionnewState - The status of the outputs after the transitionnanos - The number of nanoSeconds the outputs will remain in
this state.public long getAccumulatedNanos()
public long getChecksum()
public void clear()
Copyright © 2020 LSST. All rights reserved.