Esempio n. 1
0
 private boolean eventuallyUseLoadWork() {
   if (data.containsKey(ItemCaract.LOAD)
       && data.containsKey(ItemCaract.WORK)
       && data.containsKey(ItemCaract.DURATION) == false) {
     final Load l = (Load) data.get(ItemCaract.LOAD);
     final NumericNumber w = (NumericNumber) data.get(ItemCaract.WORK);
     data.put(ItemCaract.DURATION, new Duration(l.getMinuteMen() / w.getIntValue()));
     return true;
   }
   return false;
 }
Esempio n. 2
0
 private boolean eventuallyUseDurationLoad() {
   if (data.containsKey(ItemCaract.DURATION)
       && data.containsKey(ItemCaract.LOAD)
       && data.containsKey(ItemCaract.WORK) == false) {
     final Duration d = (Duration) data.get(ItemCaract.DURATION);
     final Load l = (Load) data.get(ItemCaract.LOAD);
     data.put(ItemCaract.WORK, new NumericNumber((int) (l.getMinuteMen() / d.getMinutes())));
     return true;
   }
   return false;
 }