ilog.cpl.equipment
Class IlpEquipmentHandlerWithoutDataSource

java.lang.Object
  extended by ilog.cpl.graph.IlpAbstractGraphHandler
      extended by ilog.cpl.graph.IlpGraphHandlerWithoutDataSource
          extended by ilog.cpl.equipment.IlpEquipmentHandlerWithoutDataSource
All Implemented Interfaces:
IlpEquipmentHandler, IlpExpansionHandler, IlpGraphHandler, IlpLoadHandler, IlpNodeHandler, IlpPositionHandler

public class IlpEquipmentHandlerWithoutDataSource
extends IlpGraphHandlerWithoutDataSource
implements IlpEquipmentHandler

This class is the preferred handler for the Equipment component when no IlpDataSource is used.

The handler performs editing operations by accessing the representation objects and the model.

Since:
JTGO 3.0
See Also:
IlpEquipmentController.setHandler(ilog.cpl.equipment.IlpEquipmentHandler)

Field Summary
 
Fields inherited from interface ilog.cpl.graph.IlpNodeHandler
LINK_FROM_NODE, LINK_FROM_PORT, LINK_TO_NODE, LINK_TO_PORT
 
Constructor Summary
IlpEquipmentHandlerWithoutDataSource(IlpEquipment equipment)
          Creates the handler.
IlpEquipmentHandlerWithoutDataSource(IlpEquipmentController controller)
          Creates the handler.
 
Method Summary
protected  IlpDefaultClass createDefaultClass()
          Returns the graph handler default position attribute class.
protected  Object createObjectId(Class clazz, IlpAttributeGroup attributes, Map properties)
          Returns an object id for the creation of a new object.
protected  String getClassName(IlpAttributeGroup attributes)
          Returns the class name for objects created by this handler.
protected  Logger getHandlerLogger()
          Returns the logger used to log messages by this handler.
 
Methods inherited from class ilog.cpl.graph.IlpGraphHandlerWithoutDataSource
handleChangeRelationship, handleCloneObject, handleCollapseObject, handleCreateObject, handleExpandObject, handleLoad, handleMoveObject, handleRemoveObject, handleUpdateObject
 
Methods inherited from class ilog.cpl.graph.IlpAbstractGraphHandler
createObject, endBatch, findIlpClass, getDefaultClass, getGraphController, getGraphModel, setGraphController, startBatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.cpl.graph.IlpNodeHandler
handleChangeRelationship, handleCloneObject, handleCreateObject, handleRemoveObject, handleUpdateObject
 
Methods inherited from interface ilog.cpl.graph.IlpPositionHandler
handleMoveObject
 
Methods inherited from interface ilog.cpl.graph.IlpExpansionHandler
handleCollapseObject, handleExpandObject
 
Methods inherited from interface ilog.cpl.graph.IlpLoadHandler
handleLoad
 

Constructor Detail

IlpEquipmentHandlerWithoutDataSource

public IlpEquipmentHandlerWithoutDataSource(IlpEquipment equipment)
Creates the handler.

Parameters:
equipment - The Equipment component.

IlpEquipmentHandlerWithoutDataSource

public IlpEquipmentHandlerWithoutDataSource(IlpEquipmentController controller)
Creates the handler.

Parameters:
controller - The Equipment component's controller.
Method Detail

getHandlerLogger

protected Logger getHandlerLogger()
Description copied from class: IlpAbstractGraphHandler
Returns the logger used to log messages by this handler.

Specified by:
getHandlerLogger in class IlpAbstractGraphHandler

getClassName

protected String getClassName(IlpAttributeGroup attributes)
Description copied from class: IlpAbstractGraphHandler
Returns the class name for objects created by this handler.

Specified by:
getClassName in class IlpAbstractGraphHandler
Parameters:
attributes - The attribute group set in the created representation objects.
See Also:
IlpAbstractGraphHandler.findIlpClass(Class, IlpAttributeGroup)
Internal method or field: do not use!

createDefaultClass

protected IlpDefaultClass createDefaultClass()
Description copied from class: IlpAbstractGraphHandler
Returns the graph handler default position attribute class.

Specified by:
createDefaultClass in class IlpAbstractGraphHandler
See Also:
IlpAbstractGraphHandler.getDefaultClass(), IlpAbstractGraphHandler.createObject(Class, IlpAttributeGroup, Map, Object)

createObjectId

protected Object createObjectId(Class clazz,
                                IlpAttributeGroup attributes,
                                Map properties)
Description copied from class: IlpAbstractGraphHandler
Returns an object id for the creation of a new object.

This method should be overridden in subclasses. The default implementation returns a String.

Note that object identifiers are subject to some constraints; for details, see IlpObject.getIdentifier().

Specified by:
createObjectId in class IlpAbstractGraphHandler
Parameters:
clazz - An implementation of IlpRepresentationNode.
attributes - A set of attributes for the object to be created, or null.
properties - A set of hints for the object to be created, or null.
Returns:
An object id for object creation.


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