Class Link

java.lang.Object
  |
  +--Link

public class Link
extends java.lang.Object


Field Summary
static int DEAD
           
static int FLUID_DYNAMICS
           
static int OSCILLATING
           
static int SELECTED
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void setAmplitude(char a)
          Changes the amplitude of any oscillations in a link
 void setElasticity(int e)
          Changes the elasticity of a link
 void setInitialLength(int current_length, int new_target_length)
          Changes the initial and target lengths of a link
 void setLength(int current_length)
          Changes the actual length of a link
 void setPhase(byte p)
          Changes the phase of any oscillations in a link
 void setTargetLength(int new_target_length)
          Changes the target length of a link
 Node theOtherEnd(Node e)
          Given an node (which is assumed to be at one end of this link) return the node at the other end
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEAD

public static final int DEAD

OSCILLATING

public static final int OSCILLATING

FLUID_DYNAMICS

public static final int FLUID_DYNAMICS

SELECTED

public static final int SELECTED
Method Detail

setLength

public void setLength(int current_length)
Changes the actual length of a link

setTargetLength

public void setTargetLength(int new_target_length)
Changes the target length of a link

setInitialLength

public void setInitialLength(int current_length,
                             int new_target_length)
Changes the initial and target lengths of a link

setElasticity

public void setElasticity(int e)
Changes the elasticity of a link

setAmplitude

public void setAmplitude(char a)
Changes the amplitude of any oscillations in a link

setPhase

public void setPhase(byte p)
Changes the phase of any oscillations in a link

theOtherEnd

public final Node theOtherEnd(Node e)
Given an node (which is assumed to be at one end of this link) return the node at the other end

main

public static void main(java.lang.String[] args)