Package edu.kit.ipd.sdq.eventsim.debug
Class DebugEntityListener
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.debug.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 anEventSimEntity
.
-
-
Constructor Summary
Constructors Constructor Description DebugEntityListener(EventSimEntity entity)
Constructs a new debug listener for the specified entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enteredSystem()
The entity has entered the system and is about to process its workload.void
leftSystem()
The entity has finished its workload and has left the system.
-
-
-
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 interfaceIEntityListener
-
leftSystem
public void leftSystem()
The entity has finished its workload and has left the system.- Specified by:
leftSystem
in interfaceIEntityListener
-
-