ilog.cpl.graph
Class IlpAbstractGraphSelectionModel

java.lang.Object
  extended by ilog.cpl.graph.IlpAbstractGraphSelectionModel
All Implemented Interfaces:
IlpGraphSelectionModel, IlpObjectSelectionModel, IlpRepresentationObjectSelectionModel
Direct Known Subclasses:
IlpAbstractEquipmentSelectionModel, IlpAbstractNetworkSelectionModel

public abstract class IlpAbstractGraphSelectionModel
extends Object
implements IlpGraphSelectionModel

This class is an implementation of the IlpGraphSelectionModel interface that handles notification to listeners of the model.

Since:
JTGO 4.0
See Also:
IlpAbstractEquipmentSelectionModel, IlpAbstractNetworkSelectionModel

Field Summary
protected  ilog.cpl.graph.internal.IlpGraphSelectionModelHelper helper
          Helper that implements IlpGraphSelectionModel methods.
 
Constructor Summary
IlpAbstractGraphSelectionModel()
          Default constructor.
 
Method Summary
protected  void addSelectionListener(EventListener listener)
          Adds a listener that is notified each time a change to this model occurs.
 void fireGraphSelectionEvent(GraphSelectionEvent event)
          Notifies the listeners of a selection model event.
 IlpRepresentationObjectMapper getRepresentationObjectMapper()
          Returns the IlpRepresentationObjectMapper used to find the IlpRepresentationObject associated with an IlpObject.
protected  void removeSelectionListener(EventListener listener)
          Removes a listener previously added with addSelectionListener.
 void setRepresentationObjectMapper(IlpRepresentationObjectMapper repObjMapper)
          Sets the IlpRepresentationObjectMapper which will be used to find the IlpRepresentationObject associated with an IlpObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.cpl.util.selection.IlpRepresentationObjectSelectionModel
addSelectionRepresentationObject, clearSelection, getSelectedRepresentationObject, getSelectedRepresentationObjects, isRepresentationObjectSelected, removeSelectionRepresentationObject, removeSelectionRepresentationObjects, setSelectedRepresentationObject, setSelectedRepresentationObjects
 
Methods inherited from interface ilog.cpl.util.selection.IlpObjectSelectionModel
addSelectionObject, clearSelection, getSelectedObject, getSelectedObjects, isObjectSelected, removeSelectionObject, setSelectedObject, setSelectedObjects
 

Field Detail

helper

protected ilog.cpl.graph.internal.IlpGraphSelectionModelHelper helper
Helper that implements IlpGraphSelectionModel methods.

Internal method or field: do not use!
Constructor Detail

IlpAbstractGraphSelectionModel

public IlpAbstractGraphSelectionModel()
Default constructor.

Since:
JTGO 4.0
Method Detail

getRepresentationObjectMapper

public IlpRepresentationObjectMapper getRepresentationObjectMapper()
Returns the IlpRepresentationObjectMapper used to find the IlpRepresentationObject associated with an IlpObject.

Specified by:
getRepresentationObjectMapper in interface IlpGraphSelectionModel
Returns:
The representation object mapper used; can be null.

setRepresentationObjectMapper

public void setRepresentationObjectMapper(IlpRepresentationObjectMapper repObjMapper)
Sets the IlpRepresentationObjectMapper which will be used to find the IlpRepresentationObject associated with an IlpObject.

Specified by:
setRepresentationObjectMapper in interface IlpGraphSelectionModel
Parameters:
repObjMapper - The representation object mapper to be used. If this parameter is null, the IlpObject selection API has no effect.

fireGraphSelectionEvent

public void fireGraphSelectionEvent(GraphSelectionEvent event)
Notifies the listeners of a selection model event.

Internal method or field: do not use!

addSelectionListener

protected void addSelectionListener(EventListener listener)
Adds a listener that is notified each time a change to this model occurs.

Internal method or field: do not use!

removeSelectionListener

protected void removeSelectionListener(EventListener listener)
Removes a listener previously added with addSelectionListener.

Internal method or field: do not use!


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.