Package org.mitre.sim

Examples of org.mitre.sim.SimEventListener


  }

  public void agenda() {
    WaitResult wr;
    double localInterval;
    SimEventListener localListener;
    while (true) {
      wr = this.waitForActionOrTrigger(trigger);
      if (!wr.triggerOccurred()) break;
      trigger.setValue(false);
      simulation.setPace(0);
      synchronized (this) {
        localInterval = interval;
        localListener = listener;
      }
//      info("about to wait");
      this.waitForTime(localInterval * 0.9999999999);
      simulation.pauseSimulation();
//      info("calling listener");
      if (localListener != null) localListener.simEventOccurred(
          new SimEvent(this, getTimeNow()));
    }
  }
View Full Code Here

TOP

Related Classes of org.mitre.sim.SimEventListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.