Package org.planit.assignment.eltm.event
Class ReleaseEvent
- java.lang.Object
-
- org.djutils.event.Event
-
- org.planit.assignment.eltm.event.CumulativeEvent
-
- org.planit.assignment.eltm.event.ReleaseEvent
-
- All Implemented Interfaces:
Serializable
,org.djutils.event.EventInterface
- Direct Known Subclasses:
ReleaseFlowEvent
public class ReleaseEvent extends CumulativeEvent
A release event represents the arrival of a trigger event at the opposite link boundary from where it originated. Additional information with this event is to be provided by sublassing it- Author:
- markr
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReleaseEvent(org.djutils.event.EventType type, TriggerEvent triggerEvent, CumulativePoint cumulativePoint, Serializable singleParameter)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkSegmentBoundary.Location
getLinkBoundaryLocation()
collect the link boundary location of this release event, i.e., the opposite link boundary of its source trigger eventTriggerEvent
getSourceTriggerEvent()
Collect the source trigger event that is the cause of this release event being scheduled-
Methods inherited from class org.planit.assignment.eltm.event.CumulativeEvent
generateEventId, getCumulativePoint, getEventContentByIndex, getId, setEventContentByIndex
-
-
-
-
Constructor Detail
-
ReleaseEvent
protected ReleaseEvent(org.djutils.event.EventType type, TriggerEvent triggerEvent, CumulativePoint cumulativePoint, Serializable singleParameter)
Constructor- Parameters:
type
- the release event typetriggerEvent
- , the source of each release event is a trigger eventcumulativePoint
- the cumulative reference pointsingleParameter
- additional parameter
-
-
Method Detail
-
getSourceTriggerEvent
public TriggerEvent getSourceTriggerEvent()
Collect the source trigger event that is the cause of this release event being scheduled- Returns:
- source trigger event
-
getLinkBoundaryLocation
public LinkSegmentBoundary.Location getLinkBoundaryLocation()
collect the link boundary location of this release event, i.e., the opposite link boundary of its source trigger event- Returns:
- link boundary location
-
-