|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectigeo.IObject
igeo.IAgent
igeo.IWall
public class IWall
Infinite plane wall to bounce particle
| Field Summary | |
|---|---|
double |
elasticity
coefficent for bouncing. |
double |
friction
coefficent for tangent part of bouncing. |
IVecI |
planeDir
|
IVec |
planeDirCache
|
IVecI |
planePt
|
java.util.ArrayList<java.lang.Class<? extends IParticleI>> |
targetClasses
|
| Fields inherited from class igeo.IAgent |
|---|
alive, duration, interactOverridden, localDynamics, parent, targets, time |
| Fields inherited from class igeo.IObject |
|---|
attribute, dynamics, graphics, parameter, server |
| Constructor Summary | |
|---|---|
IWall(IVecI planeDir,
IVecI planePt)
|
|
IWall(IWall wall)
|
|
| Method Summary | |
|---|---|
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)
|
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)
|
| Methods inherited from class igeo.IAgent |
|---|
addDynamics, alive, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, 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 |
| Methods inherited from class igeo.IObject |
|---|
alpha, alphaInt, attr, attr, attr, awtColor, blue, blueInt, clearDynamics, clearGraphics, clr, clr, clr, clr, clr, color, cp, createGraphic, deleteGraphic, dup, getAWTColor, getColor, getGraphic, getGraphic, getParameter, graphicsNum, gray, grayInt, green, greenInt, greyInt, initGraphic, initObject, isValid, isVisible, layer, layer, name, red, redInt, resetGraphic, server, setColor, setColor, setColor, setColor, setParameter, syncColor, syncGraphic, syncWeight, visible, weight |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public IWall(IVecI planeDir,
IVecI planePt)
public IWall(IWall wall)
| Method Detail |
|---|
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 double distToCrossing(IParticleI particle)
public IVec intersect(IVec pt1,
IVec pt2)
public boolean isCrossing(IParticleI particle)
public boolean isCrossing(IVec pt1,
IVec pt2)
public void postinteract(java.util.ArrayList<IDynamics> agents)
IDynamics
postinteract in interface IDynamicspostinteract 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 name(java.lang.String nm)
name in class IAgentpublic IWall layer(ILayer l)
IObject
layer in class IAgentpublic IWall hide()
hide in class IAgentpublic IWall show()
show in class IAgent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||