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.Exceptionvoid prepareForWork()
throws java.lang.Exception
java.lang.Exceptionvoid endingForWork()
throws java.lang.Exception
java.lang.Exceptionvoid close()
throws java.lang.Exception
java.lang.Exceptionvoid flushCommands()
throws java.lang.Exception
java.lang.Exceptionvoid reset()
throws java.lang.Exception
java.lang.ExceptionMachineStatus getStatus()