Class SimpleEventBasedSimEntity

  • All Implemented Interfaces:
    IEntity

    public abstract class SimpleEventBasedSimEntity
    extends Object
    implements IEntity
    A simplified version of AbstractSimEntityDelegator. The entity supports re-occuring schedules. After being activated, the entityRouting is executed at the specified initialDelay. If the entity should be rescheduled, the entityRoutine needs to return the amount of time to the next occurence.
    • Constructor Detail

      • SimpleEventBasedSimEntity

        protected SimpleEventBasedSimEntity​(ISimEventFactory eventFactory,
                                            String name)
    • Method Detail

      • isScheduled

        public boolean isScheduled()
        Specified by:
        isScheduled in interface IEntity
      • activate

        public void activate​(double initialDelay)
      • reschedule

        public void reschedule​(double d)
        Specified by:
        reschedule in interface IEntity
      • unschedule

        public void unschedule()