Class TriggerEvent

  • All Implemented Interfaces:
    Serializable, org.djutils.event.EventInterface
    Direct Known Subclasses:
    TriggerFlowEvent

    public abstract class TriggerEvent
    extends CumulativeEvent
    A trigger event emanates from a link boundary (its source) with a particular cumulative value and time and potentially other information which should be constructed by subclassing this class
    Author:
    markr
    See Also:
    Serialized Form
    • Constructor Detail

      • TriggerEvent

        protected TriggerEvent​(org.djutils.event.EventType type,
                               LinkSegmentBoundary linkBoundarySource,
                               CumulativePoint cumulativePoint,
                               Serializable singleParameter)
        Constructor
        Parameters:
        type - the trigger event type
        linkBoundarySource - , the source of each trigger is a link boundary
        cumulativePoint - the cumulative reference point
        singleParameter - additional parameter
    • Method Detail

      • getLinkBoundary

        public LinkSegmentBoundary getLinkBoundary()
        Returns:
        the link boundary this event emanates from, i.e., the source