AtomLeafAgentManager.AgentSource<java.lang.Boolean>
, AtomTest
, AtomTestCollective
, java.util.function.Predicate<IAtom>
public class AtomTestLiquidAtomic extends java.lang.Object implements AtomTestCollective, AtomLeafAgentManager.AgentSource<java.lang.Boolean>
Modifier and Type | Field | Description |
---|---|---|
protected AtomLeafAgentManager<java.lang.Boolean> |
agentManager |
|
protected int |
maxNbrsVapor |
Constructor | Description |
---|---|
AtomTestLiquidAtomic(PotentialMasterList potentialMaster,
Box box) |
Modifier and Type | Method | Description |
---|---|---|
int |
getMaxNbrsVapor() |
|
java.lang.Boolean |
makeAgent(IAtom a,
Box agentBox) |
Returns an agent for the given Atom.
|
void |
releaseAgent(java.lang.Boolean agent,
IAtom atom,
Box agentBox) |
This informs the agent source that the agent is going away and that
the agent source should disconnect the agent from other elements.
|
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 |
setMaxNbrsVapor(int newMaxNbrsVapor) |
|
boolean |
test(IAtom a) |
Returns true if atom passes the test.
|
protected int maxNbrsVapor
protected AtomLeafAgentManager<java.lang.Boolean> agentManager
public AtomTestLiquidAtomic(PotentialMasterList potentialMaster, Box box)
public void setMaxNbrsVapor(int newMaxNbrsVapor)
public int getMaxNbrsVapor()
public void resetTest()
AtomTestCollective
resetTest
in interface AtomTestCollective
public boolean test(IAtom a)
AtomTest
public java.lang.Boolean makeAgent(IAtom a, Box agentBox)
AtomLeafAgentManager.AgentSource
makeAgent
in interface AtomLeafAgentManager.AgentSource<java.lang.Boolean>
agentBox
- TODOpublic void releaseAgent(java.lang.Boolean agent, IAtom atom, Box agentBox)
AtomLeafAgentManager.AgentSource
releaseAgent
in interface AtomLeafAgentManager.AgentSource<java.lang.Boolean>