Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## igeo
Class ISpacingEqualizer

    java.lang.Object
      igeo.IDynamicsBase
          igeo.ISpacingEqualizer

All Implemented Interfaces:
  IDynamics, ISubobject, ITensionI

    public class ISpacingEqualizer

extends IDynamicsBase
implements ITensionI

Tension force to equalize spacing between pt1- pt2 and pt2 - pt3.

Field Summary
`boolean` | `constantTension`
`IParticleI` | `pt1`
`IParticleI` | `pt2`
`IParticleI` | `pt3`
`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
`ISpacingEqualizer(IParticleI p1, IParticleI p2, IParticleI p3)`
`ISpacingEqualizer(IParticleI p1, IParticleI p2, IParticleI p3, IObject parent)`
`ISpacingEqualizer(IParticle p1, IParticle p2, IParticle p3)`
`ISpacingEqualizer(IParticle p1, IParticle p2, IParticle p3, IObject parent)`
`ISpacingEqualizer(IVecI p1, IVecI p2, IVecI p3)`
`ISpacingEqualizer(IVecI p1, IVecI p2, IVecI p3, IObject parent)`
`ISpacingEqualizer(IVec p1, IVec p2, IVec p3)`
`ISpacingEqualizer(IVec p1, IVec p2, IVec p3, IObject parent)`

Method Summary
`boolean` | `constant()` if constantTension is true, amount of force is always constant and it's equals to tension.
`ISpacingEqualizer` | `constant(boolean cnst)`
`void` | `interact(java.util.ArrayList<IDynamics> dynamics)` behavior definition of interaction with other dynamic objects.
`ISpacingEqualizer` | `parent(IObject par)` setting parent object
`IParticleI` | `pt(int i)` getting end point.
`ISpacingEqualizer` | `removeTarget(int i)` remove target object.
`ISpacingEqualizer` | `removeTarget(IObject obj)` remove target object.
`ISpacingEqualizer` | `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.
`ISpacingEqualizer` | `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

### pt1

    public IParticleI pt1

### pt2

    public IParticleI pt2

### pt3

    public IParticleI pt3

### tension

    public double tension

  tension is a coefficient to convert distance of two points to amount of force.

### constantTension

    public boolean constantTension

Constructor Detail

### ISpacingEqualizer

    public ISpacingEqualizer(IParticleI p1,
                             IParticleI p2,
                             IParticleI p3,
                             IObject parent)

### ISpacingEqualizer

    public ISpacingEqualizer(IParticle p1,
                             IParticle p2,
                             IParticle p3,
                             IObject parent)

### ISpacingEqualizer

    public ISpacingEqualizer(IVec p1,
                             IVec p2,
                             IVec p3,
                             IObject parent)

### ISpacingEqualizer

    public ISpacingEqualizer(IVecI p1,
                             IVecI p2,
                             IVecI p3,
                             IObject parent)

### ISpacingEqualizer

    public ISpacingEqualizer(IParticleI p1,
                             IParticleI p2,
                             IParticleI p3)

### ISpacingEqualizer

    public ISpacingEqualizer(IParticle p1,
                             IParticle p2,
                             IParticle p3)

### ISpacingEqualizer

    public ISpacingEqualizer(IVec p1,
                             IVec p2,
                             IVec p3)

### ISpacingEqualizer

    public ISpacingEqualizer(IVecI p1,
                             IVecI p2,
                             IVecI p3)

Method Detail

### tension

    public double tension()

  Description copied from interface: `ITensionI`
  tension is a coefficient to convert distance of two points to amount of force.

  Specified by:
    `tension` in interface `ITensionI`

### tension

    public ISpacingEqualizer tension(double tension)

  Specified by:
    `tension` in interface `ITensionI`

### constant

    public boolean constant()

  Description copied from interface: `ITensionI`
  if constantTension is true, amount of force is always constant and it's equals to tension. Only direction of force changes. But if the distance is zero, force is also zero.

  Specified by:
    `constant` in interface `ITensionI`

### constant

    public ISpacingEqualizer constant(boolean cnst)

  Specified by:
    `constant` in interface `ITensionI`

### pt

    public IParticleI pt(int i)

  Description copied from interface: `ITensionI`
  getting end point. i==0 or i==1

  Specified by:
    `pt` in interface `ITensionI`

### parent

    public ISpacingEqualizer parent(IObject par)

  Description copied from interface: `ISubobject`
  setting parent object

  Specified by:
    `parent` in interface `ISubobject`
  Overrides:
    `parent` in class `IDynamicsBase`

### target

    public ISpacingEqualizer target(IObject targetObj)

  Description copied from class: `IDynamicsBase`
  add terget object to be updated by this dynamic object.

  Specified by:
    `target` in interface `IDynamics`
  Overrides:
    `target` in class `IDynamicsBase`

### removeTarget

    public ISpacingEqualizer removeTarget(int i)

  Description copied from class: `IDynamicsBase`
  remove target object.

  Specified by:
    `removeTarget` in interface `IDynamics`
  Overrides:
    `removeTarget` in class `IDynamicsBase`

### removeTarget

    public ISpacingEqualizer removeTarget(IObject obj)

  Description copied from class: `IDynamicsBase`
  remove target object.

  Specified by:
    `removeTarget` in interface `IDynamics`
  Overrides:
    `removeTarget` in class `IDynamicsBase`

### interact

    public void interact(java.util.ArrayList<IDynamics> dynamics)

  Description copied from class: `IDynamicsBase`
  behavior definition of interaction with other dynamic objects. The server puts all dynamic objects including itself.

  Specified by:
    `interact` in interface `IDynamics`
  Overrides:
    `interact` in class `IDynamicsBase`

### update

    public void update()

  Description copied from class: `IDynamicsBase`
  behavior definition of updating dynamics in each time frame

  Specified by:
    `update` in interface `IDynamics`
  Overrides:
    `update` in class `IDynamicsBase`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD