Exemple #1
0
 /**
  * @param fa
  * @return
  */
 public static Flow getVmFlowFromFlowAllocation(FlowAllocation fa) {
   VirtualMachine vm = (VirtualMachine) fa.getBoughtBy();
   for (Commodity c : vm.getCommoditiesBought()) {
     if (fa.getKey().equals(c.getKey()) && isInstanceOfFlow(c)) return (Flow) c;
   }
   return null;
 }