Пример #1
0
 public NddlVariable getVariable(String qualified) {
   for (Iterator i = variables.iterator(); i.hasNext(); ) {
     NddlVariable curr = (NddlVariable) i.next();
     if (qualified.equals(curr.getName())) return curr;
   }
   return null;
 }
Пример #2
0
 public boolean addVariable(NddlVariable variable) {
   assert (DebugMsg.debugMsg("NddlName:addVariable", name + ".addVariable(" + variable + ")"));
   if (containsVariable(variable.getName())) return false;
   variables.add(variable);
   return true;
 }