[overlord-commits] Overlord SVN: r136 - sam/trunk/src/main/java/org/jboss/sam/simulation.

overlord-commits at lists.jboss.org overlord-commits at lists.jboss.org
Thu Jul 10 10:10:35 EDT 2008


Author: heiko.braun at jboss.com
Date: 2008-07-10 10:10:35 -0400 (Thu, 10 Jul 2008)
New Revision: 136

Modified:
   sam/trunk/src/main/java/org/jboss/sam/simulation/EventSourceEntity.java
Log:
javadocs

Modified: sam/trunk/src/main/java/org/jboss/sam/simulation/EventSourceEntity.java
===================================================================
--- sam/trunk/src/main/java/org/jboss/sam/simulation/EventSourceEntity.java	2008-07-10 14:01:32 UTC (rev 135)
+++ sam/trunk/src/main/java/org/jboss/sam/simulation/EventSourceEntity.java	2008-07-10 14:10:35 UTC (rev 136)
@@ -49,11 +49,7 @@
  *
  * <br>
  * <b>Event ratio</b><br>
- * Specifies the ratio with regard to the total simulation time:
- * <ul>
- *  <li>1.00: A single event per simulation
- *  <li>0.01: An event per each simulation time sample
- * </ul>
+ * Specifies the ratio with regard to the total simulation time (between 0.01-1)
  * 
  * @author Heiko.Braun <heiko.braun at jboss.com>
  */
@@ -105,7 +101,7 @@
          {
             double totalSim = (Double) context.getConfig(EventSimulation.TOTAL_SIM_TIME);
             double holdTime = (totalSim*eventRatio);
-            Hold(holdTime);
+            Wait(holdTime);
          }
          catch (SimulationException e)
          {
@@ -113,6 +109,9 @@
          catch (RestartException e)
          {
          }
+         catch(InterruptedException e)
+         {}
+         
 
          if(null==context)
             throw new IllegalStateException("Simulation context not set");




More information about the overlord-commits mailing list