Esempio n. 1
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());
   }
 }
Esempio n. 2
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);
     }
   }
 }
Esempio n. 3
0
 /** @inheritDoc */
 public Number helpGetDistance(Measurable.Difference D) {
   return dist.helpGetDistance(D.getAlpha(), D.getBeta(), D.getFileInformation());
 }