Package org.goplanit.utils.event
Class EventImpl
- java.lang.Object
-
- org.goplanit.utils.id.IdAbleImpl
-
- org.goplanit.utils.event.EventImpl
-
- All Implemented Interfaces:
Comparable<IdAble>,Event,IdAble
- Direct Known Subclasses:
BreakEdgeEvent,BreakEdgeSegmentEvent,CumulativeEvent,ModifiedRoutedServicesLayerEventImpl,ModifiedZoneIdsEvent,PopulateUntypedComponentEvent,RecreatedDemandsEntitiesManagedIdsEvent,RecreatedDirectedGraphEntitiesManagedIdsEvent,RecreatedGraphEntitiesManagedIdsEvent,RecreatedZoningEntitiesManagedIdsEvent,RemoveSubGraphEdgeEvent,RemoveSubGraphEdgeSegmentEvent,RemoveSubGraphEvent,RemoveSubGraphVertexEvent
public abstract class EventImpl extends IdAbleImpl implements Event
The Base implementation for LocalEvent interface. Relies on globally unique id across all events to determine if events are equal- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventImpldeepClone()While events are id able, they cannot be cloned.protected Object[]getContent()Access to the content for derived eventsObjectgetSource()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.EventImplshallowClone()While events are id able, they cannot be cloned.StringtoString()-
Methods inherited from class org.goplanit.utils.id.IdAbleImpl
equals, generateAndSetId, generateId, getId, hashCode, setId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, getId, idEquals, idHashCode
-
-
-
-
Method Detail
-
getContent
protected Object[] getContent()
Access to the content for derived events- Returns:
- content object array
-
getSource
public final 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.
-
getType
public final EventType getType()
returns the type of the event.
-
shallowClone
public EventImpl shallowClone()
While events are id able, they cannot be cloned. and null is always returned upon calling this method- Specified by:
shallowClonein interfaceIdAble- Specified by:
shallowClonein classIdAbleImpl- Returns:
- shallow copy of entity
-
deepClone
public EventImpl deepClone()
While events are id able, they cannot be cloned. and null is always returned upon calling this method- Specified by:
deepClonein interfaceIdAble- Specified by:
deepClonein classIdAbleImpl- Returns:
- deep copy of entity
-
-