Exemple #1
0
 public VirtualMachine add(Component component) {
   tenants.put(component.getName(), component);
   return this;
 }
 public void findImpact() {
   for (Component comp : components.values()) {
     if (comp.getImpact() < 0) comp.setImpact(0.1);
   }
 }
 public ComponentMonitor add(Service service) {
   for (Component comp : service.getComponents()) {
     components.put(comp.getName(), comp);
   }
   return this;
 }
 public void findCoarrival() {
   for (Component comp : components.values()) {
     comp.setCoarrival(0.5);
   }
 }
 public ComponentMonitor add(Component component) {
   components.put(component.getName(), component);
   return this;
 }