Class DebugEntityListener

  • All Implemented Interfaces:
    IEntityListener

    public class DebugEntityListener
    extends Object
    implements IEntityListener
    This listener prints a debug message when an arbitrary entity entered or left the system. It can be registered with an EventSimEntity.
    • Constructor Detail

      • DebugEntityListener

        public DebugEntityListener​(EventSimEntity entity)
        Constructs a new debug listener for the specified entity.
        Parameters:
        entity - the entity that is to be observed by this listener
    • Method Detail

      • enteredSystem

        public void enteredSystem()
        The entity has entered the system and is about to process its workload.
        Specified by:
        enteredSystem in interface IEntityListener
      • leftSystem

        public void leftSystem()
        The entity has finished its workload and has left the system.
        Specified by:
        leftSystem in interface IEntityListener