| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.struc.CNode
Node in a chemical graph.
CGraph, 
Serialized Form| Field Summary | |
protected  CEdge[] | 
edges
The edges.  | 
protected  int | 
nedges
Number of edges.  | 
| Constructor Summary | |
CNode()
 | 
|
| Method Summary | |
protected  void | 
add(CEdge edge)
Add an edge if it had not been already added.  | 
abstract  java.lang.Object | 
clone()
Clones the node.  | 
 CEdge | 
getEdge(int i)
Gets the i-th edge.  | 
 int | 
getEdgeCount()
Gets the number of edges/ligands.  | 
 CNode | 
getLigand(int i)
Get the i-th ligand.  | 
protected  java.lang.Object | 
getLock()
Get lock object for synchronization.  | 
 CGraph | 
getParent()
Return the graph that contains this node.  | 
 int | 
indexOf(CEdge edge)
Returns the index of the specified edge in this node.  | 
 boolean | 
isBoundTo(CNode other)
Checks if this bond is connected to another one or not.  | 
 void | 
pack()
Reduce memory usage.  | 
protected  void | 
removeAllEdges()
Remove all edges.  | 
protected  void | 
removeEdge(CEdge edge)
Remove an edge by reference.  | 
protected  void | 
removeEdge(int i)
Remove an edge.  | 
protected static void | 
setNode1(CEdge edge,
         CNode newnode)
Sets the first node of an edge.  | 
protected static void | 
setNode2(CEdge edge,
         CNode newnode)
Sets the second node of an edge.  | 
 int | 
sringsize()
Calculate the size of smallest ring containing this atom.  | 
 java.lang.String | 
toString()
Overrides Object.toString() to ease debugging.  | 
| Methods inherited from class java.lang.Object | 
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected transient int nedges
protected transient CEdge[] edges
| Constructor Detail | 
public CNode()
| Method Detail | 
public final CGraph getParent()
public final int getEdgeCount()
public final CEdge getEdge(int i)
i - edge index
public final CNode getLigand(int i)
i - edge index
public final int indexOf(CEdge edge)
edge - edge reference
public final boolean isBoundTo(CNode other)
other - the other node
public final int sringsize()
public void pack()
public abstract java.lang.Object clone()
public java.lang.String toString()
@', and the unsigned
 hexadecimal representation of the hash code of the object.
protected void add(CEdge edge)
edge - the edge to addprotected void removeAllEdges()
protected void removeEdge(int i)
i - edge indexprotected void removeEdge(CEdge edge)
edge - edge reference to removeprotected final java.lang.Object getLock()
protected static void setNode1(CEdge edge,
                               CNode newnode)
edge - the edgenewnode - the new node value
protected static void setNode2(CEdge edge,
                               CNode newnode)
edge - the edgenewnode - the new node value
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||