Package org.goplanit.utils.event
Interface Event
-
- All Superinterfaces:
Comparable<IdAble>,IdAble
- All Known Subinterfaces:
DemandsModificationEvent,DirectedGraphModificationEvent,GraphModificationEvent,PlanitComponentEvent,RoutedServicesModificationEvent,ZoningModificationEvent
- All Known Implementing Classes:
BreakEdgeEvent,BreakEdgeSegmentEvent,CumulativeEvent,EventImpl,ModifiedRoutedServicesIdsEvent,ModifiedRoutedServicesLayerEventImpl,ModifiedRoutedTripIdsEvent,ModifiedTripScheduleDepartureIdsEvent,ModifiedZoneIdsEvent,PopulateComponentEvent,PopulateDemandsEvent,PopulateFundamentalDiagramEvent,PopulateGapFunctionEvent,PopulateInitialLinkSegmentCostEvent,PopulateNetworkEvent,PopulatePhysicalCostEvent,PopulateRoutedServicesEvent,PopulateServiceNetworkEvent,PopulateUntypedComponentEvent,PopulateZoningEvent,RecreatedDemandsEntitiesManagedIdsEvent,RecreatedDirectedGraphEntitiesManagedIdsEvent,RecreatedGraphEntitiesManagedIdsEvent,RecreatedZoningEntitiesManagedIdsEvent,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.-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, deepClone, getId, idEquals, idHashCode, shallowClone
-
-
-
-
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
-
-