public class WorkbenchCommunicator extends Object
Constructor and Description |
---|
WorkbenchCommunicator(Execution vehicleExecution)
Creates a new instance of WorkbenchCommunicator
|
Modifier and Type | Method and Description |
---|---|
void |
closeWorkbenchChannel()
Close communications
|
String |
readFromWorkbench(boolean block)
Reads a message from the workbench
|
void |
writeToWorkbench(String message)
writes a message to the workbench
|
public static final String MSG_DISPACKET
public static final String MSG_MAKEPICKERS
public static final String MSG_SETPICK
public static final String MSG_NEXTCMD
public static final String MSG_CMDCOMPLETE
public static final String MSG_STARTCMD
public static final String MSG_EXECUTIONID
public static final String MSG_GETPICKRESULTS
public static final String MSG_PICKRESULT
public static final String MSG_NOPICK
public static final String MSG_POSITION
public static final String MSG_TELEMETRYFIX
public static final String MSG_ENDEXECUTION
public static final String MSG_STATEREPORT_NAMES
public static final String MSG_STATEREPORT
public static final String MSG_AGENDAEVENT
public static final String MSG_AGENDA_GOAL
public static final String MSG_AGENDA_GOALNEW
public static final String MSG_AGENDA_META
public static final String MSG_AGENDA_SCRIPTCMD
public static final String MSG_AGENDA_VEHICLE_STATUS
public static final String MSG_MUNITION_NEWTRACK
public static final String MSG_TELEMETRY_FILE_AVAILABLE
public static final String MSG_REALTIME_TRUE
public static final String MSG_REALTIME_FALSE
public static final int COMMSERVER_PORT
public WorkbenchCommunicator(Execution vehicleExecution)
vehicleExecution
- Execution class instancepublic void writeToWorkbench(String message)
message
- to send to the workbenchpublic String readFromWorkbench(boolean block)
block
- method will block if the reader isn't ready if this is true. will not block if false.public void closeWorkbenchChannel()