daily pastebin goal
44%
SHARE
TWEET

Henrik Klaus Martin

a guest Jan 16th, 2009 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package MCL;
  2.  
  3. public class Sample {
  4.         protected Position p;
  5.         protected double importance = 0.0;
  6.        
  7.         public Sample(){
  8.                 p = new Position(0.0, 0.0, 0.0);
  9.                 this.importance = 0.0;
  10.         }
  11.         public Sample(double x, double y, double theta, double importance){
  12.                 p = new Position(x, y, theta);
  13.                 this.importance = importance;
  14.         }
  15.         public Sample(Position p, double importance){
  16.                 this.p = p;
  17.                 this.importance = importance;
  18.         }
  19.        
  20.         public double getImportance() {
  21.                 return importance;
  22.         }
  23.         public void setImportance(double importance) {
  24.                 this.importance = importance;
  25.         }
  26.         public Position getP() {
  27.                 return p;
  28.         }
  29.         public void setP(Position p) {
  30.                 this.p = p;
  31.         }
  32.        
  33. }
RAW Paste Data
Top