|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.util.Debug
public final class Debug
Class holding static fields that determine whether debugging is on, how much, what types and what (if anything) should be looked at specifically.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Debug()
|
|
| Method Summary | |
|---|---|
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(IAtomList 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(IBox box)
Returns an AtomPair containing the two atoms with global indices ATOM1_INDEX and ATOM2_INDEX within the given box. |
static AtomPair |
getAtoms(IBox box)
Returns an AtomPair containing the two atoms with global indices ATOM1_INDEX and ATOM2_INDEX within the given box. |
static MoleculePair |
getMolecules(IBox box)
Returns an AtomPair containing the two atoms with global indices ATOM1_INDEX and ATOM2_INDEX within the given box. |
static boolean |
thisBox(IBox box)
Checks whether the given box is of debugging interest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public Debug()
| Method Detail |
|---|
public static boolean anyAtom(IAtomList atoms)
atoms - array of atoms to be checked for debugging status
public static boolean anyMolecule(IMoleculeList atoms)
atoms - array of atoms to be checked for debugging status
public static boolean allAtoms(IAtomList atoms)
atoms - array of atoms to be checked for debugging status
public static boolean allAtoms(IMoleculeList atoms)
atoms - array of atoms to be checked for debugging status
public static boolean thisBox(IBox box)
box - to be checked
public static AtomPair getAtoms(IBox box)
public static MoleculePair getMolecules(IBox box)
public static IAtom getAtomLeaf1(IBox box)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||