public class IWall extends IAgent
Modifier and Type | Field and Description |
---|---|
double |
elasticity
coefficent for bouncing.
|
boolean |
forceToMoveToFront
A boolean option to force all particles behind the plane (opposite direction of plane normal) to be moved to be on the wall
|
double |
friction
coefficent for tangent part of bouncing.
|
IVecI |
planeDir |
IVec |
planeDirCache |
IVecI |
planePt |
java.util.ArrayList<java.lang.Class<? extends IParticleI>> |
targetClasses |
alive, duration, interactOverridden, localDynamics, parent, targets, time
Constructor and Description |
---|
IWall(IVecI planeDir,
IVecI planePt) |
IWall(IWall wall) |
Modifier and Type | Method and Description |
---|---|
void |
bounce(IParticleI particle,
java.util.ArrayList<IDynamics> agents)
Calculate bouncing behavior of particle.
|
IVec |
closerIntersection(IVec pt1,
IVec pt2,
java.util.ArrayList<IDynamics> agents) |
double |
distToCrossing(IParticleI particle)
in case somebody needs to measure distance to the wall.
|
double |
elast() |
IWall |
elast(double el) |
double |
elasticity() |
IWall |
elasticity(double el) |
IWall |
forceToMoveToFront(boolean flag) |
double |
fric() |
IWall |
fric(double fric) |
double |
friction() |
IWall |
friction(double fric) |
IWall |
hide() |
IVec |
intersect(IVec pt1,
IVec pt2) |
boolean |
isCrossing(IParticleI particle) |
boolean |
isCrossing(IVec pt1,
IVec pt2) |
boolean |
isTargetClass(java.lang.Object obj) |
IWall |
layer(ILayer l)
Set layer by ILayer object
|
IWall |
name(java.lang.String nm)
methods of IObject
|
void |
postinteract(java.util.ArrayList<IDynamics> agents)
executed after interact(ArrayList
|
IWall |
show() |
IWall |
targetClass(java.lang.Class<? extends IParticleI>... targets) |
IWall |
targetClass(java.lang.Class<? extends IParticleI> targetClass) |
addDynamics, alive, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, del, del, deletDynamics, deleteDynamics, deleteDynamics, duration, duration, dynamicsNum, getDynamics, hsb, hsb, hsb, hsb, initAgent, interact, interact, localDynamics, parent, parent, postupdate, preinteract, preupdate, removeTarget, removeTarget, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setHSBColor, setHSBColor, setHSBColor, setHSBColor, target, target, targetNum, targets, time, time, update, updateGraphic, updateTarget, weight, weight
addUserData, addUserData, alpha, alphaInt, attr, attr, attr, awtColor, blue, blueInt, brightness, castStringHashMap, clearDynamics, clearGraphics, clr, clr, clr, clr, clr, cp, createGraphic, defaultAttribute, deleteGraphic, dup, getAWTColor, getColor, getGraphic, getGraphic, getParameter, graphicsNum, gray, grayInt, green, greenInt, grey, greyInt, hue, initGraphic, initObject, isValid, isVisible, layer, layer, name, red, redInt, resetGraphic, saturation, server, setColor, setColor, setColor, setColor, setParameter, setTexture, syncColor, syncGraphic, syncVisibility, syncWeight, texture, userData, userData, userData, userDataNum, visible, weight
public java.util.ArrayList<java.lang.Class<? extends IParticleI>> targetClasses
public IVecI planeDir
public IVecI planePt
public IVec planeDirCache
public double elasticity
public double friction
public boolean forceToMoveToFront
public IWall targetClass(java.lang.Class<? extends IParticleI> targetClass)
public IWall targetClass(java.lang.Class<? extends IParticleI>... targets)
public boolean isTargetClass(java.lang.Object obj)
public IWall fric(double fric)
public double fric()
public IWall friction(double fric)
public double friction()
public IWall elast(double el)
public double elast()
public IWall elasticity(double el)
public double elasticity()
public IWall forceToMoveToFront(boolean flag)
public double distToCrossing(IParticleI particle)
public boolean isCrossing(IParticleI particle)
public void postinteract(java.util.ArrayList<IDynamics> agents)
IDynamics
postinteract
in interface IDynamics
postinteract
in class IAgent
public IVec closerIntersection(IVec pt1, IVec pt2, java.util.ArrayList<IDynamics> agents)
public void bounce(IParticleI particle, java.util.ArrayList<IDynamics> agents)
public IWall layer(ILayer l)
IObject