Commit 85edc7d8 authored by Xiaoying Pu's avatar Xiaoying Pu

since MouseTracker does not send packet back for breaks, made another sendto()...

since MouseTracker does not send packet back for breaks, made another sendto() method that does not expect to recvfrom()
parent 4d703e0e
......@@ -2,6 +2,7 @@ package tracker;
import java.util.Arrays;
import network.UDPHandler;
import util.DecisionType;
import util.EventListener;
import util.EventType;
import util.Persistence;
......@@ -91,12 +92,16 @@ public class UDPController {
System.out.println("<<<" + message_received);
}
/**
* Only used to make MouseTracker display break / pause screen
*
* @param stimuli related to {@link DecisionType.GETBREAK}
*/
public void sendBreakScreen(String stimuli) {
/*
STEP 4: MATLAB sends trial information
*/
// String strTrialInfo = TrialSet[i] + currentResp1 + "," + currentResp2;
messageToSend = INTERFACE_ID + "," + MESSAGE_ID + "," + stimuli;
UDPHandler.send(messageToSend, HOST, SEND_PORT);
MESSAGE_ID++;
......
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