예제 #1
0
 public void init(Feature[] defs) {
   for (int i = 0; i < defs.length; i++) definitions.put(defs[i].getID(), defs[i]);
 }
예제 #2
0
 public String getDescriptionForID(String id) {
   Feature x = (Feature) definitions.get(id);
   if (x != null) return x.getDescription();
   else return "?";
 }
예제 #3
0
 public void addDefinition(Feature definition) {
   definitions.put(definition.getID(), definition);
 }
예제 #4
0
 public Feature buildFeature(String id) {
   Feature x = (Feature) definitions.get(id);
   if (x != null) return (Feature) x.clone();
   Debug.byebye("Feature " + id + " not found");
   return null;
 }