|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectigeo.IDynamicsBase
igeo.ITension
public class ITension
Class of IDynamics to simulate tension force between two particles.
Field Summary | |
---|---|
boolean |
constantTension
if constantTension is true, amount of force is always constant and it's equals to tension. |
IParticleI |
pt1
|
IParticleI |
pt2
|
double |
tension
tension is a coefficient to convert distance of two points to amount of force. |
Fields inherited from class igeo.IDynamicsBase |
---|
parent, targets |
Fields inherited from interface igeo.ITensionI |
---|
defaultTension |
Constructor Summary | |
---|---|
ITension(IParticleI p1,
IParticleI p2)
|
|
ITension(IParticleI p1,
IParticleI p2,
IObject parent)
|
|
ITension(IParticle p1,
IParticle p2)
|
|
ITension(IParticle p1,
IParticle p2,
IObject parent)
|
|
ITension(IVecI p1,
IVecI p2)
|
|
ITension(IVecI p1,
IVecI p2,
IObject parent)
|
|
ITension(IVec p1,
IVec p2)
|
|
ITension(IVec p1,
IVec p2,
IObject parent)
|
Method Summary | |
---|---|
boolean |
constant()
if constantTension is true, amount of force is always constant and it's equals to tension. |
ITension |
constant(boolean cnst)
|
void |
interact(java.util.ArrayList<IDynamics> dynamics)
behavior definition of interaction with other dynamic objects. |
ITension |
parent(IObject par)
setting parent object |
IParticleI |
pt(int i)
getting end point. |
ITension |
removeTarget(int i)
remove target object. |
ITension |
removeTarget(IObject obj)
remove target object. |
ITension |
target(IObject targetObj)
add terget object to be updated by this dynamic object. |
double |
tension()
tension is a coefficient to convert distance of two points to amount of force. |
ITension |
tension(double tension)
|
void |
update()
behavior definition of updating dynamics in each time frame |
Methods inherited from class igeo.IDynamicsBase |
---|
initDynamicsBase, initDynamicsBase, parent, postinteract, postupdate, preinteract, preupdate, target, targetNum, targets, updateTarget |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public IParticleI pt1
public IParticleI pt2
public double tension
public boolean constantTension
Constructor Detail |
---|
public ITension(IParticleI p1, IParticleI p2, IObject parent)
public ITension(IParticle p1, IParticle p2, IObject parent)
public ITension(IVec p1, IVec p2, IObject parent)
public ITension(IVecI p1, IVecI p2, IObject parent)
public ITension(IParticleI p1, IParticleI p2)
public ITension(IParticle p1, IParticle p2)
public ITension(IVec p1, IVec p2)
public ITension(IVecI p1, IVecI p2)
Method Detail |
---|
public double tension()
ITensionI
tension
in interface ITensionI
public ITension tension(double tension)
tension
in interface ITensionI
public boolean constant()
ITensionI
constant
in interface ITensionI
public ITension constant(boolean cnst)
constant
in interface ITensionI
public IParticleI pt(int i)
ITensionI
pt
in interface ITensionI
public ITension parent(IObject par)
ISubobject
parent
in interface ISubobject
parent
in class IDynamicsBase
public ITension target(IObject targetObj)
IDynamicsBase
target
in interface IDynamics
target
in class IDynamicsBase
public ITension removeTarget(int i)
IDynamicsBase
removeTarget
in interface IDynamics
removeTarget
in class IDynamicsBase
public ITension removeTarget(IObject obj)
IDynamicsBase
removeTarget
in interface IDynamics
removeTarget
in class IDynamicsBase
public void interact(java.util.ArrayList<IDynamics> dynamics)
IDynamicsBase
interact
in interface IDynamics
interact
in class IDynamicsBase
public void update()
IDynamicsBase
update
in interface IDynamics
update
in class IDynamicsBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |