Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dm_task
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaoying Pu
dm_task
Commits
cfab0458
Commit
cfab0458
authored
Jul 16, 2015
by
Xiaoying Pu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the adaptive_matlab_udp jar did not work; type signature is suspicious, too
parent
00eec718
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
13 deletions
+29
-13
javabuilder.jar
lib/javabuilder.jar
+0
-0
project.properties
nbproject/project.properties
+3
-1
TestMain.java
src/main/TestMain.java
+8
-1
MatlabUDP.java
src/network/MatlabUDP.java
+18
-11
No files found.
lib/javabuilder.jar
0 → 100644
View file @
cfab0458
File added
nbproject/project.properties
View file @
cfab0458
...
...
@@ -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
...
...
src/main/TestMain.java
View file @
cfab0458
...
...
@@ -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
);
}
}
}
src/network/MatlabUDP.java
View file @
cfab0458
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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment