|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.nbr.CriterionPositionWall
public class CriterionPositionWall
Simple neighbor criterion based on distance moved by a leaf atom since the last update. The potential is assumed to be from a wall that exists at the box boundaries or at some fixed position within the box.
| Nested Class Summary | |
|---|---|
protected static class |
CriterionPositionWall.DoubleWrapper
|
| Field Summary | |
|---|---|
protected AtomLeafAgentManager |
agentManager
|
protected double |
dr
|
protected double |
rMaxSafe
|
protected double |
safetyFactor
|
| Constructor Summary | |
|---|---|
CriterionPositionWall(ISimulation sim)
|
|
| Method Summary | |
|---|---|
boolean |
accept(IAtomList atom)
|
Class |
getAgentClass()
Returns the Class of the agent. |
double |
getInteractionRange()
Returns the interaction range of the wall potential. |
Dimension |
getInteractionRangeDimension()
|
double |
getNeighborRange()
|
Dimension |
getNeighborRangeDimension()
|
double |
getSafetyFactor()
returns the safety factor |
double |
getWallPosition()
Returns the position of the wall. |
Dimension |
getWallPositionDimension()
|
boolean |
isBoundaryWall()
Returns true if the walls are at the box boundaries. |
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 |
setBoundaryWall(boolean isBoundaryWall)
Sets whether the walls are at the box boundaries or not. |
void |
setBox(IBox box)
Specifies the box where the criterion is being applied. |
void |
setInteractionRange(double r)
Informs the criterion of the interaction range of the wall potential. |
void |
setNeighborRange(double r)
Sets the neighbor range of the criterion. |
void |
setSafetyFactor(double f)
Sets the safety factor (between 0 and 1.0) that determines when the criterion thinks it needs an update. |
void |
setWallDim(int d)
Sets the orientation of the wall to be perpendicular to the given dimension |
void |
setWallPosition(double p)
Sets the position of the wall. |
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 double safetyFactor
protected double dr
protected double rMaxSafe
protected AtomLeafAgentManager agentManager
| Constructor Detail |
|---|
public CriterionPositionWall(ISimulation sim)
| Method Detail |
|---|
public void setSafetyFactor(double f)
public double getSafetyFactor()
public void setWallDim(int d)
public double getInteractionRange()
public void setInteractionRange(double r)
public Dimension getInteractionRangeDimension()
public void setNeighborRange(double r)
public double getNeighborRange()
public Dimension getNeighborRangeDimension()
public boolean isBoundaryWall()
public void setBoundaryWall(boolean isBoundaryWall)
public void setWallPosition(double p)
public double getWallPosition()
public Dimension getWallPositionDimension()
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 atom)
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 | ||||||||