public class CommunicationsHandler extends Object implements Runnable
Constructor and Description |
---|
CommunicationsHandler(Execution execution)
Creates a new instance of Communicator
|
CommunicationsHandler(Tactical tactical)
Creates a new instance of Communicator
|
Modifier and Type | Method and Description |
---|---|
AvclMessage |
createCharacteristicsMessage() |
AvclMessage |
createTelemetryMessage() |
void |
run()
Implements the Runnable interface
|
void |
sendCharacteristicsRequest(int VID)
Sends a request for a vehicle characteristics message to a specific vehicle
|
void |
sendMessage(AvclMessage msg)
Sends a message over the network
|
void |
sendTelemetryBroadcast()
Generates and sends a telemetry message via broadcast (no designated recipients)
|
public CommunicationsHandler(Tactical tactical)
public CommunicationsHandler(Execution execution)
public AvclMessage createTelemetryMessage()
public AvclMessage createCharacteristicsMessage()
public void sendTelemetryBroadcast()
public void sendCharacteristicsRequest(int VID)
VID
- unique identifier for the vehicle from whom characteristics are to be requestedpublic void sendMessage(AvclMessage msg)
msg
-