Commit 0e1576e4 authored by Xiaoying Pu's avatar Xiaoying Pu

How can an UDP thing throw bind exception....

parent 1e887cbf
......@@ -19,9 +19,11 @@ import static util.UDPConstants.UDP_TIMEOUT;
* @author Xiaoying Pu <xp002@bucknell.edu>
*/
public class UDPController {
/**
* As opposed to a list of listeners because UDPController only needs one anyways.
* Remember to initialize it upstream of the UDPController, i.e., the PrimaryTaskController.
* As opposed to a list of listeners because UDPController only needs one
* anyways. Remember to initialize it upstream of the UDPController, i.e.,
* the PrimaryTaskController.
*/
private EventListener theListener;
private String message_received = "";
......@@ -32,7 +34,7 @@ public class UDPController {
public UDPController() {
this.persisHandle = new Persistence("recv.csv", HEADER);
//setUp(); NOTE: should not be called at init
}
public void addListener(EventListener l) {
......
......@@ -81,7 +81,7 @@ public class Trial extends Thread {
@Override
public void run(EventType type) {
System.out.println("listener called");
System.out.println("Response Listener: " + type.toString());
switch (type) {
// Now the Trial should decide when the decision is done
// more of an action than response to listen to ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment