Package org.goplanit.component.event
Class PopulateComponentEvent
- java.lang.Object
-
- org.goplanit.utils.id.IdAbleImpl
-
- org.goplanit.utils.event.EventImpl
-
- org.goplanit.component.event.PopulateUntypedComponentEvent
-
- org.goplanit.component.event.PopulateComponentEvent
-
- All Implemented Interfaces:
Cloneable
,Comparable<IdAble>
,PlanitComponentEvent
,Event
,IdAble
public class PopulateComponentEvent extends PopulateUntypedComponentEvent
A Populate component event for components for which no dedicated derived event is created and provides access to the component to populate and additional content as is without additional type or contextual information.- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static PlanitComponentEventType
EVENT_TYPE
event type fired off when edge has been broken
-
Constructor Summary
Constructors Constructor Description PopulateComponentEvent(PlanitComponentFactory<?> source, PlanitComponent<?> componentToPopulate, Object[] additionalContent)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
getAdditionalContent()
Collect additional content provided to be able to populate the componentPlanitComponent<?>
getComponentToPopulate()
collect PLANit component to populate-
Methods inherited from class org.goplanit.utils.event.EventImpl
clone, getContent, getSource, getType, toString
-
Methods inherited from class org.goplanit.utils.id.IdAbleImpl
equals, generateAndSetId, generateId, getId, hashCode, setId
-
-
-
-
Field Detail
-
EVENT_TYPE
public static final PlanitComponentEventType EVENT_TYPE
event type fired off when edge has been broken
-
-
Constructor Detail
-
PopulateComponentEvent
public PopulateComponentEvent(PlanitComponentFactory<?> source, PlanitComponent<?> componentToPopulate, Object[] additionalContent)
Constructor- Parameters:
source
- of the eventcomponentToPopulate
- to populateadditionalContent
- for this component to be able to populate
-
-
Method Detail
-
getComponentToPopulate
public PlanitComponent<?> getComponentToPopulate()
collect PLANit component to populate- Overrides:
getComponentToPopulate
in classPopulateUntypedComponentEvent
- Returns:
- component to break
-
getAdditionalContent
public Object[] getAdditionalContent()
Collect additional content provided to be able to populate the component- Overrides:
getAdditionalContent
in classPopulateUntypedComponentEvent
- Returns:
- additional content
-
-