Advertisement
Guest User

Henrik Klaus Martin

a guest
Jan 16th, 2009
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.02 KB | None | 0 0
  1.  
  2. public class myMeasurements {
  3.     private int dx, dy, theta, s1, s2, s3;
  4.    
  5.     public myMeasurements()
  6.     {
  7.         setAll(0, 0, 0, 0, 0, 0);
  8.     }
  9.    
  10.     public myMeasurements(int dx, int dy, int dt, int s1, int s2, int s3)
  11.     {
  12.         setAll(dx, dy, dt, s1, s2, s3);
  13.     }
  14.    
  15.     public void setAll(int dx, int dy, int theta, int s1, int s2, int s3){
  16.         this.dx = dx;
  17.         this.dy = dy;
  18.         this.theta = theta;
  19.         this.s1 = s1;
  20.         this.s2 = s2;
  21.         this.s3 = s3;
  22.     }
  23.    
  24.     public int getDx() {
  25.         return dx;
  26.     }
  27.  
  28.     public void setDx(int dx) {
  29.         this.dx = dx;
  30.     }
  31.  
  32.     public int getDy() {
  33.         return dy;
  34.     }
  35.  
  36.     public void setDy(int dy) {
  37.         this.dy = dy;
  38.     }
  39.  
  40.     public int getTheta() {
  41.         return theta;
  42.     }
  43.  
  44.     public void setTheta(int theta) {
  45.         this.theta = theta;
  46.     }
  47.  
  48.     public int getS1() {
  49.         return s1;
  50.     }
  51.  
  52.     public void setS1(int s1) {
  53.         this.s1 = s1;
  54.     }
  55.  
  56.     public int getS2() {
  57.         return s2;
  58.     }
  59.  
  60.     public void setS2(int s2) {
  61.         this.s2 = s2;
  62.     }
  63.  
  64.     public int getS3() {
  65.         return s3;
  66.     }
  67.  
  68.     public void setS3(int s3) {
  69.         this.s3 = s3;
  70.     }
  71. }
  72.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement