Package org.planit.ltm.event
Class TriggerFlowEvent
- java.lang.Object
-
- org.djutils.event.Event
-
- org.planit.ltm.event.CumulativeEvent
-
- org.planit.ltm.event.TriggerEvent
-
- org.planit.ltm.event.TriggerFlowEvent
-
- All Implemented Interfaces:
Serializable
,org.djutils.event.EventInterface
public class TriggerFlowEvent extends TriggerEvent
A trigger flow event represents a flow rate that is being triggered exogenously, typically by a node on either side of the link segment. Hence, that the source of this event is a link segment boundary- Author:
- markr
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.djutils.event.EventType
LTM_TRIGGER_FLOW_EVENT
event type to identify ltm events representing a change in flow that is exogenously triggered
-
Constructor Summary
Constructors Modifier Constructor Description protected
TriggerFlowEvent(LinkSegmentBoundary linkSegmentBoundary, CumulativePoint cumulativePoint, double flowRatePcuPerHour)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TriggerFlowEvent
createTriggerFlowEvent(LinkSegmentBoundary linkBoundarySource, CumulativePoint cumulativePoint, double flowRatePcuPerHour)
Create a new trigger flow event emanating from the passing in link boundary at a given cumulative point and flow ratedouble
getPcuFowRatePerHour()
-
Methods inherited from class org.planit.ltm.event.TriggerEvent
getLinkBoundary
-
Methods inherited from class org.planit.ltm.event.CumulativeEvent
generateEventId, getCumulativePoint, getEventContentByIndex, getId, setEventContentByIndex
-
-
-
-
Constructor Detail
-
TriggerFlowEvent
protected TriggerFlowEvent(LinkSegmentBoundary linkSegmentBoundary, CumulativePoint cumulativePoint, double flowRatePcuPerHour)
Constructor- Parameters:
linkSegmentBoundary
- the link segment boundary this flow emanates fromcumulativePoint
- the cumulative reference pointflowRatePcuPerHour
- the flow rate
-
-
Method Detail
-
createTriggerFlowEvent
public static TriggerFlowEvent createTriggerFlowEvent(LinkSegmentBoundary linkBoundarySource, CumulativePoint cumulativePoint, double flowRatePcuPerHour)
Create a new trigger flow event emanating from the passing in link boundary at a given cumulative point and flow rate- Parameters:
linkBoundarySource
- link segment boundarycumulativePoint
- cumulative point to use for triggerflowRatePcuPerHour
- flow rate for the event- Returns:
- created trigger flow event
-
getPcuFowRatePerHour
public double getPcuFowRatePerHour()
- Returns:
- the pcuFowRatePerHour
-
-