Package org.goplanit.utils.event
Interface Event
-
- All Superinterfaces:
Cloneable,Comparable<IdAble>,IdAble
- All Known Subinterfaces:
DirectedGraphModificationEvent,GraphModificationEvent,PlanitComponentEvent,ZoningModificationEvent
- All Known Implementing Classes:
BreakEdgeEvent,BreakEdgeSegmentEvent,CumulativeEvent,EventImpl,ModifiedZoneIdsEvent,PopulateComponentEvent,PopulateDemandsEvent,PopulateFundamentalDiagramEvent,PopulateGapFunctionEvent,PopulateInitialLinkSegmentCostEvent,PopulateNetworkEvent,PopulatePhysicalCostEvent,PopulateRoutedServicesEvent,PopulateServiceNetworkEvent,PopulateUntypedComponentEvent,PopulateZoningEvent,ReleaseEvent,ReleaseFlowEvent,RemoveSubGraphEdgeEvent,RemoveSubGraphEdgeSegmentEvent,RemoveSubGraphEvent,RemoveSubGraphVertexEvent,TriggerEvent,TriggerFlowEvent
public interface Event extends IdAble
The Event interface defines a typed event (using the EventType). The sender of the event can be identified via its source. This is a local event not appropriate to send across a network as it allows the use of local references regarding its source and content.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetSource()returns a reference to the source of the event however the derived event decides on how to expose its source, either as a pointer or simply an id or something else.EventTypegetType()returns the type of the event.
-
-
-
Method Detail
-
getSource
Object getSource()
returns a reference to the source of the event however the derived event decides on how to expose its source, either as a pointer or simply an id or something else.- Returns:
- source of the event
-
getType
EventType getType()
returns the type of the event.- Returns:
- EbentType; the eventType of the event
-
-