public class MachineCommandStream
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
MachineCommandStream.StreamingProcessingListener |
Modifier and Type | Field and Description |
---|---|
static int |
STATE_PAUSED |
static int |
STATE_PROCESSING |
Constructor and Description |
---|
MachineCommandStream(MachineControl machineControl,
PunchPlan punchPlan,
MachineCommandStream.StreamingProcessingListener listener,
PauseTimerState pauseTimerState) |
Modifier and Type | Method and Description |
---|---|
void |
commandAck()
external signal for telling the previous command has been acknownledged
|
PauseTimerState |
getPauseTimerState() |
boolean |
isRunning()
return is the stream is processing the commands
|
void |
setPauseTimerState(PauseTimerState pauseTimerState) |
void |
startStreamFrom(int index)
start sending the commands from index index
|
void |
stopStreaming()
Stop the stream
|
public static final int STATE_PROCESSING
public static final int STATE_PAUSED
public MachineCommandStream(MachineControl machineControl, PunchPlan punchPlan, MachineCommandStream.StreamingProcessingListener listener, PauseTimerState pauseTimerState) throws java.lang.Exception
java.lang.Exception
public void startStreamFrom(int index) throws java.lang.Exception
index
- java.lang.Exception
public void stopStreaming() throws java.lang.Exception
java.lang.Exception
public boolean isRunning()
public void commandAck()
public void setPauseTimerState(PauseTimerState pauseTimerState)
public PauseTimerState getPauseTimerState()