public class InterVehicleMulticastListener extends Object implements Runnable
| Constructor and Description |
|---|
InterVehicleMulticastListener(int port,
String address)
Creates a new instance of InterVehicleCommunicator if no execution level exists
(i.e., comms parameters must be explicitly listed)
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNewReceivedMessage(AvclMessage newMsg)
Adds a new message to the inbound message buffer
|
int |
getNumReceivedMessages() |
AvclMessage |
getReceivedMessage() |
static void |
main(String[] args) |
void |
receiveMessage()
Reads a message from the queue and adds it to the received message buffer
|
void |
run()
Implements the Runnable interface
|
public InterVehicleMulticastListener(int port,
String address)
port - communications port that is to be usedaddress - internet address that is to be usedpublic void addNewReceivedMessage(AvclMessage newMsg)
newMsg - AvclMessage object being added to the bufferpublic int getNumReceivedMessages()
public AvclMessage getReceivedMessage()
public void receiveMessage()
public static void main(String[] args)