public void storeDomainFor(Variable var,Domain domain){
  if (!affectedVariables.contains(var)) {
    savedDomains.add(new Pair<Variable,Domain>(var,domain));
    affectedVariables.add(var);
  }
}

public void storeDomainFor ( Variable var , Domain domain ) { if ( ! affectedVariables . contains ( var ) ) { savedDomains . add ( new Pair < Variable , Domain > ( var , domain ) ) ; affectedVariables . add ( var ) ; } }
stores the specified domain for the specified variable if a domain has not yet been stored for the variable .
