Constructor and Description |
---|
UdpListener(int udpPort,
Simulator sim)
Constructor for a UDP listener on the specified port.
|
UdpListener(Simulator sim)
Default constructor uses UDP port 46000
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
Finalize the class by closing the datagram sockets and delete the
proxy vehicles.
|
boolean |
hasStarted()
Whether or not the thread has started to listen to the UDP port.
|
void |
run() |
void |
start()
Start the listener thread.
|
void |
stop()
Stop the listener thread.
|
public UdpListener(Simulator sim)
sim
- the simulatorpublic UdpListener(int udpPort, Simulator sim)
udpPort
- the port to listen onsim
- the simulatorprotected void finalize() throws Throwable
public boolean hasStarted()
public void start()
public void stop()
Copyright © 2013. All rights reserved.