ilog.ds
Class AbstractDSEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ilog.ds.AbstractDSEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ActivityEvent, ConstraintEvent, ElementEvent, LinkEvent, NodeEvent, ReservationEvent, ResourceEvent, RowEvent, SDMElementEvent, TreeItemEvent
- public class AbstractDSEvent
- extends EventObject
Abstract event class for all events happening on a data source
- See Also:
- Serialized Form
ADD
public static final int ADD
REMOVE
public static final int REMOVE
UPDATE
public static final int UPDATE
_properties
protected Map _properties
_type
protected int _type
AbstractDSEvent
public AbstractDSEvent(Object source,
int type,
Map properties)
- Constructor for ADD or UPDATE events
- Parameters:
source
- The source of the event (i.e. the data source)type
- Can be ADD or UPDATEproperties
- The map of properties
AbstractDSEvent
public AbstractDSEvent(Object source)
- Constructor for REMOVE events
- Parameters:
source
- The source of the event (i.e. the data source)
getType
public int getType()
- Gets the type of event.
- Returns:
- a type that can be ADD, REMOVE or UPDATE.
getProperties
public Map getProperties()
- Gets the properties.
- Returns:
- This method may return null, for example when the origin of the
data source is being deleted.