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 ITension

    java.lang.Object
      igeo.IDynamicsBase
          igeo.ITension

All Implemented Interfaces:
  IDynamics, ISubobject, ITensionI

    public class ITension

extends IDynamicsBase
implements ITensionI

Class of IDynamics to simulate tension force between two particles.

Version:
  0.7.0.0;
Author:
  Satoru Sugihara

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(IParticleAgent p1, IParticleAgent p2)`
`ITension(IParticleAgent p1, IParticleAgent p2, double tension)`
`ITension(IParticleAgent p1, IParticleAgent p2, double tension, IObject parent)`
`ITension(IParticleAgent p1, IParticleAgent p2, IObject parent)`
`ITension(IParticleI p1, IParticleI p2)`
`ITension(IParticleI p1, IParticleI p2, double tension)`
`ITension(IParticleI p1, IParticleI p2, double tension, IObject parent)`
`ITension(IParticleI p1, IParticleI p2, IObject parent)`
`ITension(IParticle p1, IParticle p2)`
`ITension(IParticle p1, IParticle p2, double tension)`
`ITension(IParticle p1, IParticle p2, double tension, IObject parent)`
`ITension(IParticle p1, IParticle p2, IObject parent)`
`ITension(IVecI p1, IVecI p2)`
`ITension(IVecI p1, IVecI p2, double tension)`
`ITension(IVecI p1, IVecI p2, double tension, IObject parent)`
`ITension(IVecI p1, IVecI p2, IObject parent)`
`ITension(IVec p1, IVec p2)`
`ITension(IVec p1, IVec p2, double tension)`
`ITension(IVec p1, IVec p2, double tension, IObject parent)`
`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` | `pos(int i)` alias of pt(int)
`IParticleI` | `pos1()` alias of pt1()
`IParticleI` | `pos2()` alias of pt2()
`IParticleI` | `pt(int i)` getting end point.
`IParticleI` | `pt1()` getting end point1.
`IParticleI` | `pt2()` getting end point2.
`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, 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

### tension

    public double tension

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

### constantTension

    public boolean constantTension

  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.

Constructor Detail

### ITension

    public ITension(IParticleI p1,
                    IParticleI p2,
                    double tension,
                    IObject parent)

### ITension

    public ITension(IParticle p1,
                    IParticle p2,
                    double tension,
                    IObject parent)

### ITension

    public ITension(IParticleAgent p1,
                    IParticleAgent p2,
                    double tension,
                    IObject parent)

### ITension

    public ITension(IVec p1,
                    IVec p2,
                    double tension,
                    IObject parent)

### ITension

    public ITension(IVecI p1,
                    IVecI p2,
                    double tension,
                    IObject parent)

### ITension

    public ITension(IParticleI p1,
                    IParticleI p2,
                    IObject parent)

### ITension

    public ITension(IParticle p1,
                    IParticle p2,
                    IObject parent)

### ITension

    public ITension(IParticleAgent p1,
                    IParticleAgent p2,
                    IObject parent)

### ITension

    public ITension(IVec p1,
                    IVec p2,
                    IObject parent)

### ITension

    public ITension(IVecI p1,
                    IVecI p2,
                    IObject parent)

### ITension

    public ITension(IParticleI p1,
                    IParticleI p2,
                    double tension)

### ITension

    public ITension(IParticle p1,
                    IParticle p2,
                    double tension)

### ITension

    public ITension(IParticleAgent p1,
                    IParticleAgent p2,
                    double tension)

### ITension

    public ITension(IVec p1,
                    IVec p2,
                    double tension)

### ITension

    public ITension(IVecI p1,
                    IVecI p2,
                    double tension)

### ITension

    public ITension(IParticleI p1,
                    IParticleI p2)

### ITension

    public ITension(IParticle p1,
                    IParticle p2)

### ITension

    public ITension(IParticleAgent p1,
                    IParticleAgent p2)

### ITension

    public ITension(IVec p1,
                    IVec p2)

### ITension

    public ITension(IVecI p1,
                    IVecI p2)

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 ITension 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 ITension constant(boolean cnst)

  Specified by:
    `constant` in interface `ITensionI`

### pt

    public IParticleI pt(int i)

  getting end point. i==0 or i==1. if i is other value, returns first point.

  Specified by:
    `pt` in interface `ITensionI`

### pos

    public IParticleI pos(int i)

  alias of pt(int)

  Specified by:
    `pos` in interface `ITensionI`

### pt1

    public IParticleI pt1()

  getting end point1.

  Specified by:
    `pt1` in interface `ITensionI`

### pos1

    public IParticleI pos1()

  alias of pt1()

  Specified by:
    `pos1` in interface `ITensionI`

### pt2

    public IParticleI pt2()

  getting end point2.

  Specified by:
    `pt2` in interface `ITensionI`

### pos2

    public IParticleI pos2()

  alias of pt2()

  Specified by:
    `pos2` in interface `ITensionI`

### parent

    public ITension parent(IObject par)

  Description copied from interface: `ISubobject`
  setting parent object

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

### target

    public ITension 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 ITension removeTarget(int i)

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

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

### removeTarget

    public ITension 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