Ejemplo n.º 1
0
 /**
  * Goes through the list of components one by one calling its simulate method This should be
  * called in a loop to get a continuous simulation.
  */
 public void runSimulation() {
   Iterator<Component> ci = powrPlntComponents.iterator();
   Component comp = null;
   while (ci.hasNext()) {
     comp = ci.next();
     comp.calucalte();
   }
 }