net.cercis.jstruct.ui
Class Mate

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

public class Mate
extends java.lang.Object

Mate Object. This object is used in the UI and stores the information of the material so that it can be interactively modified and is later used in the MateCalc object


Constructor Summary
Mate(int id)
          Class Constructor where only the identifier is given
Mate(int id, float E, float A, float I)
          Class Constructor where the values are stored
Mate(MateCalc mi)
          Class Constructor where the values are stored thanks to the copy of the values of a mateCalc
Mate(java.lang.String cad)
          Class Constructor where the values are passed in a String that is tokenized to obtain the information
 
Method Summary
 float A()
          Returns the value of the Area
 float E()
          Returns the value of the Elastic modulus
 float EA()
          Returns the value of the product Elastic modulus x Area
 float EI()
          Returns the value of the product Elastic modulus x Inertia
 float I()
          Returns the value of the Inertia
 int id()
          Returns the value of the identifier
 void setA(float A)
          Sets the value of the Area
 void setE(float E)
          Sets the value of the elastic Modulus
 void setI(float I)
          Sets the value of the Inertia
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mate

public Mate(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 (id - Elastic modulus - Area - Inertia) in order

Mate

public Mate(int id,
            float E,
            float A,
            float I)
Class Constructor where the values are stored

Parameters:
id - Integer number identifier of the node
E - Float number storing the Elastic Modulus value
A - Float number storing the Area value
I - Float number storing the Inertia value

Mate

public Mate(MateCalc mi)
Class Constructor where the values are stored thanks to the copy of the values of a mateCalc

Parameters:
mi - MateCalc to be copied

Mate

public Mate(int id)
Class Constructor where only the identifier is given

Parameters:
id - Integer number identifier of the node
Method Detail

id

public int id()
Returns the value of the identifier

Returns:
Integer number with the value of the identifier

E

public float E()
Returns the value of the Elastic modulus

Returns:
Float number with the value of the elastic modulus

A

public float A()
Returns the value of the Area

Returns:
Float number with the value of the area

I

public float I()
Returns the value of the Inertia

Returns:
Float number with the value of the Inertia

setE

public void setE(float E)
Sets the value of the elastic Modulus

Parameters:
E - Float number with the value of the Elastic modulus

setA

public void setA(float A)
Sets the value of the Area

Parameters:
A - Float number with the value of the Area

setI

public void setI(float I)
Sets the value of the Inertia

Parameters:
I - Float number with the value of the Inertia

EA

public float EA()
Returns the value of the product Elastic modulus x Area

Returns:
Float number with the value of the product Elastic modulus x Area

EI

public float EI()
Returns the value of the product Elastic modulus x Inertia

Returns:
Float number with the value of the product Elastic modulus x Inertia