|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object chemaxon.struc.CNode
Node in a chemical graph.
CGraph
,
Serialized FormField 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. |
CEdge |
getEdgeTo(CNode other)
Finds the edge that connects this node to another node. |
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. |
boolean |
haveEqualProperties(CNode node)
Checks if two nodes have the same properties. |
boolean |
haveSimilarEdges(CNode a)
Checks if two nodes have similar edges. |
int |
indexOf(CEdge edge)
Returns the index of the specified edge in this node. |
boolean |
isBoundTo(CNode other)
Checks if this CNode 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 CEdge getEdgeTo(CNode other)
other
- the other node
isBoundTo(CNode)
public final boolean isBoundTo(CNode other)
other
- the other node
true
if the two nodes are connected with a bond,
false
otherwisegetEdgeTo(CNode)
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 valueprotected static void setNode2(CEdge edge, CNode newnode)
edge
- the edgenewnode
- the new node valuepublic boolean haveSimilarEdges(CNode a)
true
if they have similar edges,
false
otherwiseCEdge.haveEqualProperties(CEdge)
public boolean haveEqualProperties(CNode node)
true
they have the same properties,
false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |