comparison src/alice/test/codesegment/remote/beta/FishPoint.java @ 136:bb023f060f2f working

add different version test
author sugi
date Sun, 19 Aug 2012 21:31:21 +0900
parents
children
comparison
equal deleted inserted replaced
135:2f401fd70311 136:bb023f060f2f
1 package alice.test.codesegment.remote.beta;
2
3 import org.msgpack.annotation.Message;
4 import org.msgpack.annotation.Optional;
5
6 @Message
7 public class FishPoint {
8 // public fields are serialized.
9 public float x = 0.0f;
10 public float y = 0.0f;
11 public String vector = "light";
12 @Optional public float z = 0.0f;
13
14
15 public FishPoint(){}
16
17 public FishPoint(float x,float y){
18 this.x = x;
19 this.y = y;
20 }
21
22 public FishPoint(float x,float y,float z){
23 this.x = x;
24 this.y = y;
25 this.z = z;
26 }
27
28 public void setXY(float x,float y){
29 this.x = x;
30 this.y = y;
31 }
32
33 public void setXYZ(float x,float y,float z){
34 this.x = x;
35 this.y = y;
36 this.z = z;
37 }
38
39 public float getX(){
40 return this.x;
41 }
42
43 public float getY(){
44 return this.y;
45 }
46
47 public float getZ(){
48 return this.z;
49 }
50
51 public String getVector(){
52 return this.vector;
53 }
54
55 }