Interface ISimRunnable<E extends IEntity>
-
- Type Parameters:
E
-
- All Known Implementing Classes:
AbstractSimEventDelegator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ISimRunnable<E extends IEntity>
This interface captures a runnable which is triggered by a simulation event. It has been factored out fromAbstractSimEventDelegator
in an effort to reduce the required coupling between simulation entityIEntity
and simulation eventISimEvent
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
eventRoutine(E who)
Executes the simulation logic associated with this event.
-
-
-
Method Detail
-
eventRoutine
void eventRoutine(E who)
Executes the simulation logic associated with this event.Notice, that this method is not intended to be called by clients. Instead, the event scheduler of the respective simulation library invokes this method as soon as the simulation is reached at which the event has been scheduled.
- Parameters:
who
- the entity associated with this event
-
-