org.commonreality.object.manager.event
Class ObjectEvent<O extends ISimulationObject,L extends IObjectListener<O>>
java.lang.Object
org.commonreality.object.manager.event.ObjectEvent<O,L>
- All Implemented Interfaces:
- ICommonRealityEvent<L>, IObjectEvent<O,L>
public class ObjectEvent<O extends ISimulationObject,L extends IObjectListener<O>>
- extends java.lang.Object
- implements IObjectEvent<O,L>
- Author:
- developer
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectEvent
public ObjectEvent(IObjectEvent.Type type)
ObjectEvent
public ObjectEvent(IObjectEvent.Type type,
java.util.Collection<O> objects)
ObjectEvent
public ObjectEvent(java.util.Collection<? extends IObjectDelta> deltas)
getSystemTime
public final long getSystemTime()
- Specified by:
getSystemTime in interface ICommonRealityEvent<L extends IObjectListener<O>>
- See Also:
ICommonRealityEvent.getSystemTime()
getType
public final IObjectEvent.Type getType()
- Specified by:
getType in interface IObjectEvent<O extends ISimulationObject,L extends IObjectListener<O>>
- See Also:
IObjectEvent.getType()
fire
public void fire(L listener)
- Specified by:
fire in interface ICommonRealityEvent<L extends IObjectListener<O>>
getObjects
public java.util.Collection<O> getObjects()
- Specified by:
getObjects in interface IObjectEvent<O extends ISimulationObject,L extends IObjectListener<O>>
- See Also:
IObjectEvent.getObjects()
getDeltas
public java.util.Collection<IObjectDelta> getDeltas()
- Specified by:
getDeltas in interface IObjectEvent<O extends ISimulationObject,L extends IObjectListener<O>>