All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbpm.sim.event.StatisticsResetEvent Maven / Gradle / Ivy

There is a newer version: 3.2.19.ayg
Show newest version
package org.jbpm.sim.event;

import org.jbpm.sim.def.JbpmSimulationModel;

import desmoj.core.simulator.ExternalEvent;
import desmoj.core.simulator.Model;

/**
 * This event resets all statistical counters, can be schedules at 
 * some point in time, for example when the steady state starts
 * 
 * @author [email protected]
 */
public class StatisticsResetEvent extends ExternalEvent {

  private JbpmSimulationModel model;

  public StatisticsResetEvent(Model owner) {
    super(owner, "reset statistical counters", true);
    this.model = (JbpmSimulationModel) owner;
  }

  /**
   * This eventRoutine describes what an object of this class
   * will do, when it becomes activated by DESMO-J
   */
  public void eventRoutine() {
    model.reset();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy