Skip to content

Commit 115181d

Browse files
committed
improve interop with java
1 parent 0e4efff commit 115181d

24 files changed

+1299
-1169
lines changed

libremoteApiJava.so

165 KB
Binary file not shown.

src/main/java/coppelia/BoolW.java

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
// PUT_VREP_REMOTEAPI_COPYRIGHT_NOTICE_HERE
2-
3-
package coppelia;
4-
5-
public class BoolW
6-
{
7-
boolean w;
8-
9-
public BoolW(boolean b)
10-
{
11-
w = b;
12-
}
13-
14-
public void setValue(boolean b)
15-
{
16-
w = b;
17-
}
18-
19-
public boolean getValue()
20-
{
21-
return w;
22-
}
1+
// PUT_VREP_REMOTEAPI_COPYRIGHT_NOTICE_HERE
2+
3+
package coppelia;
4+
5+
public class BoolW
6+
{
7+
boolean w;
8+
9+
public BoolW(boolean b)
10+
{
11+
w = b;
12+
}
13+
14+
public void setValue(boolean b)
15+
{
16+
w = b;
17+
}
18+
19+
public boolean getValue()
20+
{
21+
return w;
22+
}
2323
}

src/main/java/coppelia/BoolWA.java

+33-33
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
// PUT_VREP_REMOTEAPI_COPYRIGHT_NOTICE_HERE
2-
3-
package coppelia;
4-
5-
public class BoolWA
6-
{
7-
boolean w[];
8-
9-
public BoolWA(int i)
10-
{
11-
w = new boolean[i];
12-
}
13-
14-
public void initArray(int i)
15-
{
16-
w = new boolean[i];
17-
}
18-
19-
public boolean[] getArray()
20-
{
21-
return w;
22-
}
23-
24-
public int getLength()
25-
{
26-
return w.length;
27-
}
28-
29-
public boolean[] getNewArray(int i)
30-
{
31-
w = new boolean[i];
32-
return w;
33-
}
1+
// PUT_VREP_REMOTEAPI_COPYRIGHT_NOTICE_HERE
2+
3+
package coppelia;
4+
5+
public class BoolWA
6+
{
7+
boolean w[];
8+
9+
public BoolWA(int i)
10+
{
11+
w = new boolean[i];
12+
}
13+
14+
public void initArray(int i)
15+
{
16+
w = new boolean[i];
17+
}
18+
19+
public boolean[] getArray()
20+
{
21+
return w;
22+
}
23+
24+
public int getLength()
25+
{
26+
return w.length;
27+
}
28+
29+
public boolean[] getNewArray(int i)
30+
{
31+
w = new boolean[i];
32+
return w;
33+
}
3434
}

src/main/java/coppelia/CharW.java

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
// PUT_VREP_REMOTEAPI_COPYRIGHT_NOTICE_HERE
2-
3-
package coppelia;
4-
5-
public class CharW
6-
{
7-
char w;
8-
9-
public CharW(char c)
10-
{
11-
w = c;
12-
}
13-
14-
public void setValue(char c)
15-
{
16-
w = c;
17-
}
18-
19-
public char getValue()
20-
{
21-
return w;
22-
}
1+
// PUT_VREP_REMOTEAPI_COPYRIGHT_NOTICE_HERE
2+
3+
package coppelia;
4+
5+
public class CharW
6+
{
7+
char w;
8+
9+
public CharW(char c)
10+
{
11+
w = c;
12+
}
13+
14+
public void setValue(char c)
15+
{
16+
w = c;
17+
}
18+
19+
public char getValue()
20+
{
21+
return w;
22+
}
2323
}

src/main/java/coppelia/CharWA.java

+45-45
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
// PUT_VREP_REMOTEAPI_COPYRIGHT_NOTICE_HERE
2-
3-
package coppelia;
4-
5-
public class CharWA
6-
{
7-
char[] w;
8-
9-
public CharWA(int i)
10-
{
11-
w = new char[i];
12-
}
13-
14-
public CharWA(String s)
15-
{
16-
w=s.toCharArray();
17-
}
18-
19-
public String getString()
20-
{
21-
String a;
22-
a = new String(w);
23-
return a;
24-
}
25-
26-
public void initArray(int i)
27-
{
28-
w = new char[i];
29-
}
30-
31-
public char[] getArray()
32-
{
33-
return w;
34-
}
35-
36-
public int getLength()
37-
{
38-
return w.length;
39-
}
40-
41-
public char[] getNewArray(int i)
42-
{
43-
w = new char[i];
44-
return w;
45-
}
1+
// PUT_VREP_REMOTEAPI_COPYRIGHT_NOTICE_HERE
2+
3+
package coppelia;
4+
5+
public class CharWA
6+
{
7+
char[] w;
8+
9+
public CharWA(int i)
10+
{
11+
w = new char[i];
12+
}
13+
14+
public CharWA(String s)
15+
{
16+
w=s.toCharArray();
17+
}
18+
19+
public String getString()
20+
{
21+
String a;
22+
a = new String(w);
23+
return a;
24+
}
25+
26+
public void initArray(int i)
27+
{
28+
w = new char[i];
29+
}
30+
31+
public char[] getArray()
32+
{
33+
return w;
34+
}
35+
36+
public int getLength()
37+
{
38+
return w.length;
39+
}
40+
41+
public char[] getNewArray(int i)
42+
{
43+
w = new char[i];
44+
return w;
45+
}
4646
}

src/main/java/coppelia/FloatW.java

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
// PUT_VREP_REMOTEAPI_COPYRIGHT_NOTICE_HERE
2-
3-
package coppelia;
4-
5-
public class FloatW
6-
{
7-
float w;
8-
9-
public FloatW(float f)
10-
{
11-
w = f;
12-
}
13-
14-
public void setValue(float i)
15-
{
16-
w = i;
17-
}
18-
19-
public float getValue()
20-
{
21-
return w;
22-
}
1+
// PUT_VREP_REMOTEAPI_COPYRIGHT_NOTICE_HERE
2+
3+
package coppelia;
4+
5+
public class FloatW
6+
{
7+
float w;
8+
9+
public FloatW(float f)
10+
{
11+
w = f;
12+
}
13+
14+
public void setValue(float i)
15+
{
16+
w = i;
17+
}
18+
19+
public float getValue()
20+
{
21+
return w;
22+
}
2323
}

0 commit comments

Comments
 (0)