Class AbstractSimProcessDelegator

Type Parameters:
M - the type of the simulation model
All Implemented Interfaces:
IEntity, ISimProcess

public abstract class AbstractSimProcessDelegator extends AbstractSimEntityDelegator implements ISimProcess
See Also:
  • Constructor Details

  • Method Details

    • getRawId

      public long getRawId()
    • getId

      public String getId()
    • lifeCycle

      public abstract void lifeCycle()
    • isTerminated

      public boolean isTerminated()
      Returns whether this process has finished its execution.
      Specified by:
      isTerminated in interface ISimProcess
    • passivate

      public void passivate()
      Passivates this process. This will suspend the simulation of the process until it is resumed again using the scheduleAt method.
      Specified by:
      passivate in interface ISimProcess
    • scheduleAt

      public void scheduleAt(double d)
      Resumes the process after waiting delay simulated time units.
      Specified by:
      scheduleAt in interface ISimProcess
      Parameters:
      d - the period of simulated time to wait before this process is activated again.
    • passivate

      public void passivate(double delay)
      Puts the process asleep and resumes after waiting delay simulated time units.
      Specified by:
      passivate in interface ISimProcess
      Parameters:
      delay - the period of simulated time to wait before this process is activated again.
    • addProcessListener

      public void addProcessListener(ISimProcessListener l)
      Specified by:
      addProcessListener in interface ISimProcess
    • removeProcessListener

      public void removeProcessListener(ISimProcessListener l)
      Specified by:
      removeProcessListener in interface ISimProcess
    • preempt

      public void preempt()
      Specified by:
      preempt in interface ISimProcess