public interface MachineControl
Modifier and Type | Method and Description |
---|---|
void |
close()
close the machine control
|
void |
endingForWork()
ending the work, send commands for shutting down some functionnalities
|
void |
flushCommands()
wait for all commands executed, this method is a blocking one
|
MachineStatus |
getStatus()
return the machine current status
|
void |
prepareForWork()
prepare , and presend some informations, before sending work commands
|
void |
reset()
reset the machine processor, and clear all commands
|
void |
sendCommand(Command command)
send a command to machine, this method is a blocking one
|
void |
setMachineControlListener(MachineControlListener listener)
define the listener for machine control
|
void setMachineControlListener(MachineControlListener listener)
listener
- void sendCommand(Command command) throws java.lang.Exception
command
- java.lang.Exception
void prepareForWork() throws java.lang.Exception
java.lang.Exception
void endingForWork() throws java.lang.Exception
java.lang.Exception
void close() throws java.lang.Exception
java.lang.Exception
void flushCommands() throws java.lang.Exception
java.lang.Exception
void reset() throws java.lang.Exception
java.lang.Exception
MachineStatus getStatus()