|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aim4.sim.UdpListener
public class UdpListener
Listens for UDP datagrams from Marvin at a UPD port (default is 46000) for communication from real cars and manages corresponding proxyvehicle's.
Constructor Summary | |
---|---|
UdpListener(int udpPort,
Simulator sim)
Constructor for a UDP listener on the specified port. |
|
UdpListener(Simulator sim)
Default constructor uses UDP port 46000 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UdpListener(Simulator sim)
sim
- the simulatorpublic UdpListener(int udpPort, Simulator sim)
udpPort
- the port to listen onsim
- the simulatorMethod Detail |
---|
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public boolean hasStarted()
public void start()
public void stop()
public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |