Пример #1
0
 /**
  * aggregiert zwei Objekte vom Typ {@link SummableHashMap}
  *
  * @param myReferences
  * @param factorReferences
  * @return
  */
 private SummableHashMap<PersistentUnit> aggregateReferences(
     final SummableHashMap<PersistentUnit> myReferences,
     final SummableHashMap<PersistentUnit> factorReferences) {
   final SummableHashMap<PersistentUnit> result = myReferences;
   myReferences.aggregate_add((factorReferences));
   return result;
 }
Пример #2
0
 public void calcTargetRefTypes(final PersistentQuantity arg1, final PersistentQuantity arg2)
     throws model.NotComputableException, PersistenceException {
   // referenzen aus den Einheiten holen
   final SummableHashMap<PersistentUnit> myReferences = computeReferences(arg1);
   final SummableHashMap<PersistentUnit> factorReferences = computeReferences(arg2);
   // Einheitstypen aus den Referenzen konsolidieren
   final SummableHashMap<PersistentUnitType> myRefTypes = computeReferenceTypes(myReferences);
   final SummableHashMap<PersistentUnitType> factorRefTypes =
       computeReferenceTypes(factorReferences);
   myRefTypes.aggregate_add(factorRefTypes);
   this.targetRefTypes = myRefTypes;
 }