Пример #1
0
 public boolean equals(Object o) {
   if (o instanceof OutputVariable) {
     OutputVariable ovar = (OutputVariable) o;
     return ovar.getUniqueName().equals(getUniqueName());
   }
   return false;
 }
Пример #2
0
 /**
  * Makes a deep clone of the OutputVariable and its OutputExpression; the OutputExpression may
  * contain AWCWords for which a clone has already been made (these are stored in the
  * originalToCloneMap); in that case the existing clones must be used i.o. new ones
  */
 protected OutputVariable cloneInContext(
     Map<ConfigurableWord, ConfigurableWord> originalToCloneMap)
     throws CloneNotSupportedException {
   OutputVariable clone = (OutputVariable) super.clone();
   clone.setExpression(
       (OutputExpression) getExpression().cloneInContext(originalToCloneMap, null));
   return clone;
 }