|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.nbr.CriterionSimple
public class CriterionSimple
Simple neighbor criterion based on distance moved by a leaf atom since the last update.
| Field Summary | |
|---|---|
protected AtomLeafAgentManager |
agentManager
|
protected IBoundary |
boundary
|
protected BoxAgentManager |
boxAgentManager
|
protected double |
displacementLimit2
|
protected IVectorMutable |
dr
|
protected double |
interactionRange
|
protected double |
neighborRadius2
|
protected double |
r2
|
protected double |
r2MaxSafe
|
protected double |
safetyFactor
|
protected ISpace |
space
|
| Constructor Summary | |
|---|---|
CriterionSimple(ISimulation sim,
ISpace _space,
double interactionRange,
double neighborRadius)
|
|
| Method Summary | |
|---|---|
boolean |
accept(IAtomList pair)
|
Class |
getAgentClass()
Returns the Class of the agent. |
double |
getInteractionRange()
|
Dimension |
getInteractionRangeDimension()
|
double |
getNeighborRange()
|
Dimension |
getNeighborRangeDimension()
|
double |
getSafetyFactor()
|
Object |
makeAgent(IAtom atom)
Returns an agent for the given Atom. |
boolean |
needUpdate(IAtom atom)
Indicates whether the neighbor list for the given atom should be updated, according to this criterion. |
void |
releaseAgent(Object agent,
IAtom atom)
This informs the agent source that the agent is going away and that the agent source should disconnect the agent from other elements |
void |
reset(IAtom atom)
Indicates to criterion that given atom's neighbor list has just been updated, and that properties (e.g., record of atom's position) used by needUpdate and unsafe() methods should be reset. |
void |
setBox(IBox box)
Specifies the box where the criterion is being applied. |
void |
setInteractionRange(double newInteractionRange)
|
void |
setNeighborRange(double r)
|
void |
setSafetyFactor(double f)
|
boolean |
unsafe()
Indicates whether the atom has changed (e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ISpace space
protected double interactionRange
protected double displacementLimit2
protected double neighborRadius2
protected final IVectorMutable dr
protected IBoundary boundary
protected double safetyFactor
protected double r2
protected double r2MaxSafe
protected AtomLeafAgentManager agentManager
protected final BoxAgentManager boxAgentManager
| Constructor Detail |
|---|
public CriterionSimple(ISimulation sim,
ISpace _space,
double interactionRange,
double neighborRadius)
| Method Detail |
|---|
public void setSafetyFactor(double f)
public double getSafetyFactor()
public void setNeighborRange(double r)
public double getNeighborRange()
public Dimension getNeighborRangeDimension()
public void setInteractionRange(double newInteractionRange)
public double getInteractionRange()
public Dimension getInteractionRangeDimension()
public boolean needUpdate(IAtom atom)
NeighborCriterion
needUpdate in interface NeighborCriterionpublic void setBox(IBox box)
NeighborCriterion
setBox in interface NeighborCriterionpublic boolean unsafe()
NeighborCriterion
unsafe in interface NeighborCriterionpublic boolean accept(IAtomList pair)
accept in interface NeighborCriterionpublic void reset(IAtom atom)
NeighborCriterion
reset in interface NeighborCriterionpublic Class getAgentClass()
AtomLeafAgentManager.AgentSource
getAgentClass in interface AtomLeafAgentManager.AgentSourcepublic Object makeAgent(IAtom atom)
AtomLeafAgentManager.AgentSource
makeAgent in interface AtomLeafAgentManager.AgentSource
public void releaseAgent(Object agent,
IAtom atom)
AtomLeafAgentManager.AgentSource
releaseAgent in interface AtomLeafAgentManager.AgentSource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||