ilog.ds
Interface IlGraphDataSourceEditor

All Superinterfaces:
IlDataSourceEditor
All Known Implementing Classes:
IlsGraphDataSource

public interface IlGraphDataSourceEditor
extends IlDataSourceEditor

Graph data source Note that the dereferencing is missing.


Method Summary
abstract  Object dsAddLink(Object fromNode, Object toNode, Map properties)
          Creates a new link in the graph .
abstract  Object dsAddNode(Map properties)
          Creates a new node in the graph.
abstract  void dsRemoveLink(Object link)
          Removes a link from the graph.
abstract  void dsRemoveNode(Object node)
          Removes a node from the graph.
abstract  void dsUpdateLink(Object link, String propertyName, Object propertyValue)
          Updates a property of a link
abstract  void dsUpdateNode(Object node, String propertyName, Object propertyValue)
          Updates a property of a node.
abstract  boolean isLinkEditable(Object obj)
          Returns false if the link is read-only.
abstract  boolean isNodeEditable(Object obj)
          Returns false if the node is read-only.
 
Methods inherited from interface ilog.ds.IlDataSourceEditor
dsEndBatch, dsStartBatch, dsUpdateProperty, getDSBatchLevel, isEditable
 

Method Detail

isNodeEditable

public boolean isNodeEditable(Object obj)
Returns false if the node is read-only.
Parameters:
obj - The object to test.

dsAddNode

public Object dsAddNode(Map properties)
Creates a new node in the graph.
Parameters:
properties - The properties of the node to create
Returns:
the created node (to be used only as a key). Note that this method may return null if the node takes a long time to be created.

dsRemoveNode

public void dsRemoveNode(Object node)
Removes a node from the graph.
Parameters:
node - The node to be removed

dsUpdateNode

public void dsUpdateNode(Object node,
                         String propertyName,
                         Object propertyValue)
Updates a property of a node.
Parameters:
node - The node to update
propertyName - The name of the property to be updated
propertyValue - The new value of the property

isLinkEditable

public boolean isLinkEditable(Object obj)
Returns false if the link is read-only.
Parameters:
obj - The object to test.

dsAddLink

public Object dsAddLink(Object fromNode,
                        Object toNode,
                        Map properties)
Creates a new link in the graph .
Parameters:
fromNode - The origin node of the link
toNode - The destination node of the link
properties - The properties of the link to create
Returns:
the created link (to be used only as a key). Note that this method may return null if the link takes a long time to be created.

dsRemoveLink

public void dsRemoveLink(Object link)
Removes a link from the graph.
Parameters:
link - The link to be removed

dsUpdateLink

public void dsUpdateLink(Object link,
                         String propertyName,
                         Object propertyValue)
Updates a property of a link
Parameters:
link - The link to update
propertyName - The name of the property to be updated
propertyValue - The new value of the property