Class PopulateGapFunctionEvent

  • All Implemented Interfaces:
    Cloneable, Comparable<IdAble>, PlanitComponentEvent, Event, IdAble

    public class PopulateGapFunctionEvent
    extends PopulateUntypedComponentEvent
    A Populate gap function event is fired when PLANit requests for a registered listener to populate the newly created gap function instance. It is assumed only a single listener will populate this component and it is expected that the registration of this listener is handled by the platform rather than the user. The end user will - via the listener - receive this event when implementing an input builder and registering this builder on a PLANit project for example.
    Author:
    markr
    • Field Detail

      • EVENT_TYPE

        public static final PlanitComponentEventType EVENT_TYPE
        event type fired off when gap function needs to be populated
    • Constructor Detail

      • PopulateGapFunctionEvent

        public PopulateGapFunctionEvent​(PlanitComponentFactory<?> source,
                                        GapFunction gapFunctionToPopulate)
        Constructor
        Parameters:
        source - of the event
        gapFunctionToPopulate - gap function to populate
    • Method Detail

      • getGapFunctionToPopulate

        public GapFunction getGapFunctionToPopulate()
        collect gap function to populate
        Returns:
        gap function