public final class Debug
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static double |
ATOM_SIZE |
The minimum allowable distance between Atoms.
|
static int |
ATOM1_INDEX |
Atom index of first atom of interest.
|
static int |
ATOM2_INDEX |
Atom index of second atom of interest.
|
static int |
BOX_INDEX |
index of box of interest.
|
static boolean |
DEBUG_NOW |
true if debugging is currently enabled (when the integrator reaches step START)
|
protected static MoleculePair |
debugMoleculePair |
|
protected static AtomPair |
debugPair |
|
static long |
LEVEL |
debugging level.
|
static int |
MOLECULE1_INDEX |
Molecule index of a molecule of interest.
|
static int |
MOLECULE2_INDEX |
Global index of a molecule of interest.
|
static boolean |
ON |
true if any debugging should be done
|
static int |
SPECIES1_INDEX |
|
static int |
SPECIES2_INDEX |
|
static long |
START |
what step of the integrator debugging should start from.
|
static long |
stepCount |
Provides step count to other pieces of code that want to know the step
count.
|
static long |
STOP |
what step of the integrator should the simulation bail
set this to prevent Etomica from running for a long time while
outputting debugging information (potentially filling up the disk)
|
Constructor | Description |
---|---|
Debug() |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
allAtoms(IAtomList atoms) |
determines if all of the atoms in the given array are set to be debugged
(via ATOMx_NUM and setAtoms(box)).
|
static boolean |
allAtoms(IMoleculeList atoms) |
determines if all of the atoms in the given array are set to be debugged
(via ATOMx_NUM and setAtoms(box)).
|
static boolean |
anyAtom(IAtom... atoms) |
|
static boolean |
anyAtom(java.util.List<IAtom> atoms) |
determines whether any of the atoms in the given array are set to be debugged
(via ATOMx_NUM)
|
static boolean |
anyMolecule(IMoleculeList atoms) |
determines whether any of the atoms in the given array are set to be debugged
(via ATOMx_NUM)
|
static IAtom |
getAtomLeaf1(Box box) |
Returns an AtomPair containing the two atoms with global indices
ATOM1_INDEX and ATOM2_INDEX within the given box.
|
static AtomPair |
getAtoms(Box box) |
Returns an AtomPair containing the two atoms with global indices
ATOM1_INDEX and ATOM2_INDEX within the given box.
|
static MoleculePair |
getMolecules(Box box) |
Returns an AtomPair containing the two atoms with global indices
ATOM1_INDEX and ATOM2_INDEX within the given box.
|
static boolean |
thisBox(Box box) |
Checks whether the given box is of debugging interest
|
protected static AtomPair debugPair
protected static MoleculePair debugMoleculePair
public static final boolean ON
public static long START
public static long STOP
public static long LEVEL
public static long stepCount
public static boolean DEBUG_NOW
public static final int ATOM1_INDEX
public static final int ATOM2_INDEX
public static final int MOLECULE1_INDEX
public static final int MOLECULE2_INDEX
public static final int SPECIES1_INDEX
public static final int SPECIES2_INDEX
public static final int BOX_INDEX
public static final double ATOM_SIZE
public static boolean anyAtom(java.util.List<IAtom> atoms)
atoms
- array of atoms to be checked for debugging statuspublic static boolean anyAtom(IAtom... atoms)
public static boolean anyMolecule(IMoleculeList atoms)
atoms
- array of atoms to be checked for debugging statuspublic static boolean allAtoms(IAtomList atoms)
atoms
- array of atoms to be checked for debugging statuspublic static boolean allAtoms(IMoleculeList atoms)
atoms
- array of atoms to be checked for debugging statuspublic static boolean thisBox(Box box)
box
- to be checkedpublic static AtomPair getAtoms(Box box)
public static MoleculePair getMolecules(Box box)