Package org.goplanit.component.event
Class PopulateInitialLinkSegmentCostEvent
- java.lang.Object
-
- org.goplanit.utils.id.IdAbleImpl
-
- org.goplanit.utils.event.EventImpl
-
- org.goplanit.component.event.PopulateUntypedComponentEvent
-
- org.goplanit.component.event.PopulateInitialLinkSegmentCostEvent
-
- All Implemented Interfaces:
Comparable<IdAble>
,PlanitComponentEvent
,Event
,IdAble
public class PopulateInitialLinkSegmentCostEvent extends PopulateUntypedComponentEvent
A Populate initial link segment cost event is fired when PLANit requests for a registered listener to populate these initial costs which relate to a specific network. It is assumed only a single handler populates this component and the registration of this handler is dealt with by the platform rather than the user. The end user will - via the handler - receive this event when implementing an input builder, and registering this builder on a PLANit project for example.- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static PlanitComponentEventType
EVENT_TYPE
event type fired off when initial costs (without specific time period) needs to be populated
-
Constructor Summary
Constructors Constructor Description PopulateInitialLinkSegmentCostEvent(PlanitComponentFactory<?> source, InitialMacroscopicLinkSegmentCost initialLinkSegmentCostToPopulate, String fileName, MacroscopicNetwork network, TimePeriod timePeriod)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFileName()
Collect fileName of the file containing the actual initial costs to use to populate this instanceInitialMacroscopicLinkSegmentCost
getInitialLinkSegmentCostToPopulate()
Collect PLANit initial cost component to populateMacroscopicNetwork
getParentNetwork()
Collect network these costs should relate toTimePeriod
getTimePeriod()
Collect time period for which the initial costs are meant (might not be set)boolean
hasTimePeriod()
Verify if time period is set for this initial cost to populate-
Methods inherited from class org.goplanit.component.event.PopulateUntypedComponentEvent
getAdditionalContent, getComponentToPopulate, hasAdditionalContent
-
Methods inherited from class org.goplanit.utils.event.EventImpl
deepClone, getContent, getSource, getType, shallowClone, toString
-
Methods inherited from class org.goplanit.utils.id.IdAbleImpl
equals, generateAndSetId, generateId, getId, hashCode, setId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, deepClone, getId, idEquals, idHashCode, shallowClone
-
-
-
-
Field Detail
-
EVENT_TYPE
public static final PlanitComponentEventType EVENT_TYPE
event type fired off when initial costs (without specific time period) needs to be populated
-
-
Constructor Detail
-
PopulateInitialLinkSegmentCostEvent
public PopulateInitialLinkSegmentCostEvent(PlanitComponentFactory<?> source, InitialMacroscopicLinkSegmentCost initialLinkSegmentCostToPopulate, String fileName, MacroscopicNetwork network, TimePeriod timePeriod)
Constructor- Parameters:
source
- of the eventinitialLinkSegmentCostToPopulate
- cost to populatefileName
- with the location of the costs to use for populating the memory modelnetwork
- parent network of these coststimePeriod
- Optional time periods for which to populate, may be null in which case it is time period agnostic
-
-
Method Detail
-
getInitialLinkSegmentCostToPopulate
public InitialMacroscopicLinkSegmentCost getInitialLinkSegmentCostToPopulate()
Collect PLANit initial cost component to populate- Returns:
- zoning
-
getFileName
public String getFileName()
Collect fileName of the file containing the actual initial costs to use to populate this instance- Returns:
- fileName
-
getParentNetwork
public MacroscopicNetwork getParentNetwork()
Collect network these costs should relate to- Returns:
- network
-
hasTimePeriod
public boolean hasTimePeriod()
Verify if time period is set for this initial cost to populate- Returns:
- true when present, false otherwise
-
getTimePeriod
public TimePeriod getTimePeriod()
Collect time period for which the initial costs are meant (might not be set)- Returns:
- time period, null if not set for a specific time period
-
-