예제 #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;
 }
예제 #2
0
 private boolean eventuallyUseDurationWork() {
   if (data.containsKey(ItemCaract.DURATION)
       && data.containsKey(ItemCaract.WORK)
       && data.containsKey(ItemCaract.LOAD) == false) {
     final Duration d = (Duration) data.get(ItemCaract.DURATION);
     final NumericNumber w = (NumericNumber) data.get(ItemCaract.WORK);
     data.put(ItemCaract.LOAD, new Load(d.getMinutes() * w.getIntValue()));
     return true;
   }
   return false;
 }
예제 #3
0
파일: Load.java 프로젝트: mar9000/plantuml
 public Load(NumericNumber value) {
   this(value.getIntValue() * 24L * 60 * 60);
 }
예제 #4
0
 public Duration(NumericNumber value) {
   this(value.getIntValue() * 24L * 60 * 60);
 }