AtomTest
, AtomTestCollective
, java.util.function.Predicate<IAtom>
public class AtomTestLiquid extends java.lang.Object implements AtomTestCollective
Modifier and Type | Field | Description |
---|---|---|
protected Vector |
axis |
|
protected double |
cutoff |
|
protected double |
cutoffSq |
|
protected IDataSource |
meter |
|
protected Vector |
work |
Constructor | Description |
---|---|
AtomTestLiquid(Space space,
IDataSource meterDeformation) |
Modifier and Type | Method | Description |
---|---|---|
double |
getCutoff() |
|
void |
resetTest() |
Informs the AtomTest that something in the system has changed (atom
positions, velocityies, etc) has changed and the status of the
atoms should be determined.
|
void |
setCutoff(double newCutoff) |
|
boolean |
test(IAtom a) |
Returns true if atom passes the test.
|
protected double cutoff
protected double cutoffSq
protected final IDataSource meter
protected final Vector axis
protected final Vector work
public AtomTestLiquid(Space space, IDataSource meterDeformation)
public void setCutoff(double newCutoff)
public double getCutoff()
public void resetTest()
AtomTestCollective
resetTest
in interface AtomTestCollective