public static Vector getAllViolations() {
   Vector out = new Vector();
   Iterator iter = _violationTypes.keySet().iterator();
   while (iter.hasNext()) {
     out.addAll((Vector) (_violationTypes.get((Integer) iter.next())));
   }
   return out;
 }
 private IntVar registerViolation(IntVar var) {
   ((Vector) (_violationTypes.get(new Integer(_type)))).add(var);
   return var;
 }
 public static Vector getAllViolationsOfType(int ruleNumber) {
   return (Vector) (_violationTypes.get(new Integer(ruleNumber)));
 }
 PossibleViolation(int deviation, int type) {
   _deviation = deviation;
   _type = type;
   if (_violationTypes.get(new Integer(_type)) == null)
     _violationTypes.put(new Integer(_type), new Vector());
 }