Commit c8bfa342 authored by Xiaoying Pu's avatar Xiaoying Pu

nothing's working

parent 511450f1
File added
......@@ -29,15 +29,17 @@ dist.jar=${dist.dir}/dm_task.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
file.reference.adaptive_matlab_udp.jar=../../../../../../../../home/accounts/student/x/xp002/dm_task/lib/adaptive_matlab_udp.jar
file.reference.javabuilder.jar=/home/accounts/student/x/xp002/dm_task/lib/javabuilder.jar
file.reference.mtUDP.jar=../../../../../../../../home/accounts/student/x/xp002/dm_task/lib/mtUDP.jar
file.reference.mtUDP.jar=/home/accounts/student/x/xp002/dm_task/lib/mtUDP.jar
file.reference.second.jar=/home/accounts/student/x/xp002/dm_task/lib/second.jar
file.reference.test.jar=/home/accounts/student/x/xp002/dm_task/lib/test.jar
includes=**
jar.compress=false
javac.classpath=\
${file.reference.second.jar}:\
${file.reference.javabuilder.jar}:\
${file.reference.mtUDP.jar}:\
${file.reference.adaptive_matlab_udp.jar}:\
${file.reference.javabuilder.jar}
${file.reference.test.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
......@@ -57,8 +59,8 @@ javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.reference.adaptive_matlab_udp.jar=../../../../../../../../home/accounts/student/x/xp002/dm_task/lib/doc_adaptive/html/
javadoc.reference.mtUDP.jar=../../../../../../../../home/accounts/student/x/xp002/dm_task/lib/doc/html/
javadoc.reference.mtUDP.jar=/home/accounts/student/x/xp002/dm_task/lib/doc/html/
javadoc.reference.second.jar=/home/accounts/student/x/xp002/dm_task/lib/second/html/
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
......@@ -71,10 +73,6 @@ platform.active=default_platform
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project.
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
# To set system properties for unit tests define test-sys-prop.name=value:
run.jvmargs=
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
......
......@@ -5,10 +5,10 @@
*/
package main;
import adaptive_matlab_udp.UDPUtil;
import com.mathworks.toolbox.javabuilder.MWException;
import java.util.logging.Level;
import java.util.logging.Logger;
import test.Test;
/**
*
......@@ -20,8 +20,12 @@ public class TestMain {
* @param args the command line arguments
*/
public static void main(String[] args) {
System.setProperty("java.library.path", "/nfs/software/matlab-R2015a/runtime/glnxa64/");
try {
new UDPUtil().adaptive_matlab_udp(new Object[]{}, new Object[]{});
Test handle = new Test();
handle.test();
// Class1 handle = new Class1();
// handle.mtUDP(new Object[]{}, new Object[]{});
} catch (MWException ex) {
Logger.getLogger(TestMain.class.getName()).log(Level.SEVERE, null, ex);
}
......
package network;
import adaptive_matlab_udp.UDPUtil;
import com.mathworks.toolbox.javabuilder.MWException;
import java.util.logging.Level;
import java.util.logging.Logger;
import mtUDP.Class1;
import java.net.InetAddress;
import java.net.UnknownHostException;
/**
*
......@@ -44,51 +41,39 @@ public class MatlabUDP {
"2,Valentino,fashion,,2,1,",};
public void run() {
try {
int currentResp1 = 100; // "$100" - starting left response
int currentResp2 = 200; // "$200" - starting right response
int currentResp1 = 100;
int currentResp2 = 200;
while (this.message_received.equals(HOST)) {
}
// Step 1: Initial WAITING signal from MouseTracker
String aString = Integer.toString(INTERFACE_ID) + "," + Integer.toString(MESSAGE_ID) + ",WAITING";
while (this.message_received.equals(aString)) {
/**
* Sorry for the very strange name....
*/
Class1 handle = new Class1();
handle.mtUDP(new Object[]{}, new Object[]{});
// This is from the m file that actually does stuff
new UDPUtil().adaptive_matlab_udp(new Object[]{}, new Object[]{});
} catch (MWException ex) {
Logger.getLogger(MatlabUDP.class.getName()).log(Level.SEVERE, null, ex);
}
}
// /**
// * mtUDP.m
// *
// * @param message
// * @param socket_info
// * @return [String msg_out, int success]
// * @throws java.net.UnknownHostException
// */
// public Object[] mtUDP(String message, String[] socket_info) throws UnknownHostException {
//
// String mtHOST = socket_info[0];
// String PORT = socket_info[1];
// String strUDP_TIMEOUT = "";
// String strPACKET_LENGTH = "";
// int mtUDP_TIMEOUT = 0;
// int PACKET_LENGTH = 0;
// if (socket_info.length > 2) {
// strUDP_TIMEOUT = socket_info[2];
// strPACKET_LENGTH = socket_info[3];
// mtUDP_TIMEOUT = Integer.parseInt(strUDP_TIMEOUT);
// PACKET_LENGTH = Integer.parseInt(strPACKET_LENGTH);
// }
// InetAddress HOST_Inet_ADDRESS = InetAddress.getByName(mtHOST);
//
// return null;
// }
/**
* mtUDP.m
*
* @param message
* @param socket_info
* @return [String msg_out, int success]
* @throws java.net.UnknownHostException
*/
public Object[] mtUDP(String message, String[] socket_info) throws UnknownHostException {
String mtHOST = socket_info[0];
String PORT = socket_info[1];
String strUDP_TIMEOUT = "";
String strPACKET_LENGTH = "";
int mtUDP_TIMEOUT = 0;
int PACKET_LENGTH = 0;
if (socket_info.length > 2) {
strUDP_TIMEOUT = socket_info[2];
strPACKET_LENGTH = socket_info[3];
mtUDP_TIMEOUT = Integer.parseInt(strUDP_TIMEOUT);
PACKET_LENGTH = Integer.parseInt(strPACKET_LENGTH);
}
InetAddress HOST_Inet_ADDRESS = InetAddress.getByName(mtHOST);
return null;
}
}
time,digit_span,decision_id
1437100001750,7,1
1437100006750,7,2
1437100011751,7,3
1437100016753,7,4
1437100021754,4,5
1437100026755,7,6
1437100031757,7,7
1437100036758,1,8
1437100041760,1,9
1437100046761,1,10
1437100051762,1,11
1437100056763,1,12
1437100061765,7,13
1437100066769,7,14
1437100071770,7,15
1437100076771,6,16
1437100081772,7,17
1437100086773,7,18
1437100091775,1,19
1437100096778,1,20
1437100101778,1,21
1437100106780,1,22
1437100111782,1,23
1437100116788,1,24
1437100121790,7,25
1437100126792,7,26
1437100131793,7,27
1437100136794,7,28
1437100141795,6,29
1437100146796,7,30
1437100151798,1,31
1437100156800,1,32
1437100161802,1,33
1437100166804,1,34
1437149950982,7,1
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