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