LumenCandidate.java

Go to the documentation of this file.
00001 package theba.core;
00002 
00003 import theba.core.math.Point3D;
00004 
00011 public class LumenCandidate extends Point3D implements Comparable {
00012 
00013         protected int size;
00014 
00015         boolean valid = true;
00016 
00017         public LumenCandidate(int x, int y, int z, int rating) {
00018                 super(x, y, z);
00019                 this.size = rating;
00020         }
00021 
00022         public LumenCandidate(int x, int y, int z) {
00023                 super(x, y, z);
00024         }
00025 
00026         public int compareTo(Object o) {
00027                 if (o instanceof LumenCandidate) {
00028                         LumenCandidate s2 = (LumenCandidate) o;
00029                         return s2.size - size;
00030                 }
00031                 return 0;
00032         }
00033 
00034         public boolean isValid() {
00035                 return valid;
00036         }
00037 
00038         public void setValid(boolean valid) {
00039                 this.valid = valid;
00040         }
00041 
00042         public int getSize() {
00043                 return size;
00044         }
00045 
00046         public void setSize(int size) {
00047                 this.size = size;
00048         }
00049 
00050 }

Generated on Fri Nov 13 08:57:07 2009 for Theba by  doxygen 1.6.1