kdl.prox.db
Class Subgraph

java.lang.Object
  extended by kdl.prox.db.Subgraph

public class Subgraph
extends java.lang.Object

Represents a subgraph


Constructor Summary
Subgraph(Container container, int subgOID, java.lang.String objBATName, java.lang.String linkBATName)
           
 
Method Summary
 int getLinkCount()
           
 java.util.List getLinks()
          Returns a List of ProxLink instances for this subgraph.
 int getObjCount()
           
 java.util.List getObjects()
          Returns a List of ProxObj instances for this subgraph.
 Container getParentContainer()
          Returns the parent container
 int getSubgID()
          Return the subgraph OID
 NST getSubgLinkNST()
          Returns the NST that contains the links in the subgraph, with the corresponding filter.
 NST getSubgObjectNST()
          Returns the NST that contains the objects in the subgraph, with the corresponding filter Caller should release
 void insertLink(int linkOID, java.lang.String name)
          Adds a link to this subgraph
 void insertObject(int objOID, java.lang.String name)
          Adds an object to this subgraph
 void removeLink(int oid)
          Removes the specified link from this subgraph.
 void removeObject(int oid)
          Removes the specified object from this subgraph.
 void removeObject(int oid, java.lang.String name)
          Removes the specified object from this subgraph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subgraph

public Subgraph(Container container,
                int subgOID,
                java.lang.String objBATName,
                java.lang.String linkBATName)
Parameters:
container -
subgOID -
objBATName -
linkBATName -
Method Detail

getLinks

public java.util.List getLinks()
Returns a List of ProxLink instances for this subgraph.

Returns:
See Also:
ProxLink

getLinkCount

public int getLinkCount()

getObjects

public java.util.List getObjects()
Returns a List of ProxObj instances for this subgraph.

Returns:
See Also:
ProxObj

getObjCount

public int getObjCount()

getParentContainer

public Container getParentContainer()
Returns the parent container

Returns:

getSubgID

public int getSubgID()
Return the subgraph OID

Returns:

getSubgLinkNST

public NST getSubgLinkNST()
Returns the NST that contains the links in the subgraph, with the corresponding filter. Called should release

Returns:

getSubgObjectNST

public NST getSubgObjectNST()
Returns the NST that contains the objects in the subgraph, with the corresponding filter Caller should release

Returns:

insertLink

public void insertLink(int linkOID,
                       java.lang.String name)
Adds a link to this subgraph

Parameters:
linkOID -
name -

insertObject

public void insertObject(int objOID,
                         java.lang.String name)
Adds an object to this subgraph

Parameters:
objOID -
name -

removeObject

public void removeObject(int oid)
Removes the specified object from this subgraph. Does not check for any links that might connect to this object - assumes the user is taking care of ensuring that the subgraph is connected.

Parameters:
oid -

removeObject

public void removeObject(int oid,
                         java.lang.String name)
Removes the specified object from this subgraph. Does not check for any links that might connect to this object - assumes the user is taking care of ensuring that the subgraph is connected.

Parameters:
oid -

removeLink

public void removeLink(int oid)
Removes the specified link from this subgraph. Does not check for any objects that might connect to this object - assumes the user is taking care of ensuring the subgraph is connected.

Parameters:
oid -