Package org.openscience.cdk.geometry.cip
Class VisitedAtoms
- java.lang.Object
-
- org.openscience.cdk.geometry.cip.VisitedAtoms
-
-
Constructor Summary
Constructors Constructor Description VisitedAtoms()
Creates a new empty list of visitedIAtom
s.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isVisited(IAtom atom)
Returns true if the given atom already has been visited.void
visited(VisitedAtoms visitedAtoms)
Adds all atoms from thevisitedAtoms
list to the current list.void
visited(IAtom atom)
Marks the given atom as visited.
-
-
-
Constructor Detail
-
VisitedAtoms
public VisitedAtoms()
Creates a new empty list of visitedIAtom
s.
-
-
Method Detail
-
isVisited
public boolean isVisited(IAtom atom)
Returns true if the given atom already has been visited.
-
visited
public void visited(IAtom atom)
Marks the given atom as visited.- Parameters:
atom
-IAtom
that is now marked as visited
-
visited
public void visited(VisitedAtoms visitedAtoms)
Adds all atoms from thevisitedAtoms
list to the current list.- Parameters:
visitedAtoms
- theVisitedAtoms
from which all atoms are added
-
-