Package microsim.event
Class CollectionTargetEvent
java.lang.Object
microsim.event.Event
microsim.event.CollectionTargetEvent
- All Implemented Interfaces:
- Comparable<Event>
This class informs all elements within a collection about 
Event.- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCollectionTargetEvent(@NonNull Collection<?> elements, @NonNull Class<?> objectType, @NonNull String method, boolean readOnly) Creates an object ofCollectionTargetEventtype using late binding method call (type detection happens at run-time).CollectionTargetEvent(@NonNull Collection<?> elements, @NonNull Enum<?> actionType, boolean readOnly) Creates an object ofCollectionTargetEventtype with the method Creates an object ofCollectionTargetEventtype using early binding method call (all types are set during the process of compilation).
- 
Method SummaryModifier and TypeMethodDescriptionvoidFires a particular event, i.e., calls each element contained into the collection.Methods inherited from class microsim.event.EventcompareTo, setTimeAtNextLoop, setTimeOrderingAndLoopPeriod
- 
Field Details- 
eventType
- 
readOnlyprotected boolean readOnly
- 
collection
 
- 
- 
Constructor Details- 
CollectionTargetEventpublic CollectionTargetEvent(@NonNull @NonNull Collection<?> elements, @NonNull @NonNull Class<?> objectType, @NonNull @NonNull String method, boolean readOnly) throws SimulationException Creates an object ofCollectionTargetEventtype using late binding method call (type detection happens at run-time).- Parameters:
- elements- A collection of elements of some nature.
- objectType- The type of- elements.
- method- The method name.
- readOnly- A boolean flag that makes- elementsan immutable object.
- Throws:
- SimulationException- when there is no such method to invoke.
- NullPointerException- when any of the objects passed to the constructor is- null.
 
- 
CollectionTargetEventpublic CollectionTargetEvent(@NonNull @NonNull Collection<?> elements, @NonNull @NonNull Enum<?> actionType, boolean readOnly) Creates an object ofCollectionTargetEventtype with the method Creates an object ofCollectionTargetEventtype using early binding method call (all types are set during the process of compilation).- Parameters:
- elements- A collection of elements of some nature.
- actionType- An action to invoke.
- readOnly- A boolean flag that makes- elementsan immutable object.
- Throws:
- NullPointerException- when any of the objects passed to the constructor is- null.
 
 
- 
- 
Method Details