Class Engine

java.lang.Object
java.lang.Thread
simu.framework.Engine
All Implemented Interfaces:
Runnable, IEngine
Direct Known Subclasses:
MyEngine

public abstract class Engine extends Thread implements IEngine
  • Field Details

  • Constructor Details

  • Method Details

    • setSimulationTime

      public void setSimulationTime(double time)
      Specified by:
      setSimulationTime in interface IEngine
    • setDelay

      public void setDelay(long time)
      Specified by:
      setDelay in interface IEngine
    • getDelay

      public long getDelay()
      Specified by:
      getDelay in interface IEngine
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • pauseSimulation

      public void pauseSimulation()
      Specified by:
      pauseSimulation in interface IEngine
    • resumeSimulation

      public void resumeSimulation()
      Specified by:
      resumeSimulation in interface IEngine
    • stepSimulation

      public void stepSimulation()
      Specified by:
      stepSimulation in interface IEngine
    • initialization

      protected abstract void initialization()
    • runEvent

      protected abstract void runEvent(Event t)
    • results

      protected abstract void results()