Commit cfab0458 authored by Xiaoying Pu's avatar Xiaoying Pu

the adaptive_matlab_udp jar did not work; type signature is suspicious, too

parent 00eec718
......@@ -30,12 +30,14 @@ 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
includes=**
jar.compress=false
javac.classpath=\
${file.reference.mtUDP.jar}:\
${file.reference.adaptive_matlab_udp.jar}
${file.reference.adaptive_matlab_udp.jar}:\
${file.reference.javabuilder.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
......
......@@ -6,6 +6,9 @@
package main;
import adaptive_matlab_udp.UDPUtil;
import com.mathworks.toolbox.javabuilder.MWException;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
......@@ -17,7 +20,11 @@ public class TestMain {
* @param args the command line arguments
*/
public static void main(String[] args) {
new UDPUtil().adaptive_matlab_udp(new Object[]{}, new Object[]{});
try {
new UDPUtil().adaptive_matlab_udp(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;
/**
......@@ -41,20 +44,24 @@ public class MatlabUDP {
"2,Valentino,fashion,,2,1,",};
public void run() {
int currentResp1 = 100; // "$100" - starting left response
int currentResp2 = 200; // "$200" - starting right response
try {
int currentResp1 = 100; // "$100" - starting left response
int currentResp2 = 200; // "$200" - starting right response
while (this.message_received.equals(HOST)) {
}
while (this.message_received.equals(HOST)) {
}
/**
* Sorry for the very strange name....
*/
Class1 handle = new Class1();
handle.mtUDP(new Object[]{}, new Object[]{});
/**
* 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[]{});
// 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);
}
}
......
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