Exemplo n.º 1
0
 /** @inheritDoc */
 public Number getDistance(Measurable.Difference D) {
   if (D.getBlackout() != null) {
     return new Integer(1);
   } else {
     if (D.getAlpha() == null || D.getBeta() == null) {
       return (D.getAlpha() == D.getBeta()) ? new Integer(0) : new Integer(1);
     } else {
       return (D.getAlpha().equals(D.getBeta())) ? new Integer(0) : new Integer(1);
     }
   }
 }
Exemplo n.º 2
0
 /** @inheritDoc */
 public Number helpGetDistance(Measurable.Difference D) {
   try {
     return dist.helpGetDistance(
         D.getAlpha(), D.getBeta(), D.getBlackout(), D.getIgnore(), D.getFileInformation());
   } catch (IgnoredValueException ivx) {
     throw new RuntimeException("Unexpected exception: " + ivx.getMessage());
   }
 }
Exemplo n.º 3
0
 /** @inheritDoc */
 public Number helpGetDistance(Measurable.Difference D) {
   return dist.helpGetDistance(D.getAlpha(), D.getBeta(), D.getFileInformation());
 }