net.cercis.jstruct.ui
Class Lspr

java.lang.Object
  extended bynet.cercis.jstruct.ui.Lspr

public class Lspr
extends java.lang.Object

Lspr Object. This object is used in the UI and stores the information of the linear spring so that it can be interactively modified and is later used in the LsprCalc object


Constructor Summary
Lspr()
          Void Class Constructor
Lspr(int node, float kx, float ky, float kz)
          Class Constructor where the values are stored
Lspr(LsprCalc li)
          Class Constructor where the values are stored thanks to the copy of the values of a LsprCalc
Lspr(java.lang.String cad)
          Class Constructor where the values are passed in a String that is tokenized to obtain the information
 
Method Summary
 float kx()
          Returns the value of the x value of the spring constant
 float ky()
          Returns the value of the y value of the spring constant
 float kz()
          Returns the value of the z value of the spring constant
 int node()
          Returns the value of the node
 void setkx(float kx)
          Sets the value of the x spring constant
 void setky(float ky)
          Sets the value of the y spring constant
 void setkz(float kz)
          Sets the value of the z spring constant
 void setnode(int node)
          Sets the value of the node identifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lspr

public Lspr(java.lang.String cad)
Class Constructor where the values are passed in a String that is tokenized to obtain the information

Parameters:
cad - String where the information is passed and that has to be tokenized (node - kx - ky - kz) in order

Lspr

public Lspr(int node,
            float kx,
            float ky,
            float kz)
Class Constructor where the values are stored

Parameters:
node - Integer number identifier of the node
kx - Float number with the spring constant value in the x direction
ky - Float number with the spring constant value in the y direction
kz - Float number with the spring constant value in the z direction

Lspr

public Lspr(LsprCalc li)
Class Constructor where the values are stored thanks to the copy of the values of a LsprCalc

Parameters:
li - LsprCalc to be copied

Lspr

public Lspr()
Void Class Constructor

Method Detail

node

public int node()
Returns the value of the node

Returns:
Integer number with the value of the node

kx

public float kx()
Returns the value of the x value of the spring constant

Returns:
Float number with the x value of the Spring constant

ky

public float ky()
Returns the value of the y value of the spring constant

Returns:
Float number with the y value of the Spring constant

kz

public float kz()
Returns the value of the z value of the spring constant

Returns:
Float number with the z value of the Spring constant

setnode

public void setnode(int node)
Sets the value of the node identifier

Parameters:
node - Integer number with the value of the node identifier

setkx

public void setkx(float kx)
Sets the value of the x spring constant

Parameters:
kx - Float number with the value of the x spring constant

setky

public void setky(float ky)
Sets the value of the y spring constant

Parameters:
ky - Float number with the value of the y spring constant

setkz

public void setkz(float kz)
Sets the value of the z spring constant

Parameters:
kz - Float number with the value of the z spring constant