Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package MCL;
- public class Sample {
- protected Position p;
- protected double importance = 0.0;
- public Sample(){
- p = new Position(0.0, 0.0, 0.0);
- this.importance = 0.0;
- }
- public Sample(double x, double y, double theta, double importance){
- p = new Position(x, y, theta);
- this.importance = importance;
- }
- public Sample(Position p, double importance){
- this.p = p;
- this.importance = importance;
- }
- public double getImportance() {
- return importance;
- }
- public void setImportance(double importance) {
- this.importance = importance;
- }
- public Position getP() {
- return p;
- }
- public void setP(Position p) {
- this.p = p;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement