be.optiloading
Class Intensity

java.lang.Object
  extended by be.optiloading.Intensity
All Implemented Interfaces:
java.lang.Cloneable

public class Intensity
extends java.lang.Object
implements java.lang.Cloneable

Intensity class used to calculate shear forces and bending moments.

Author:
Tim Pintens, info@optiloading.be, www.optiloading.be

Constructor Summary
Intensity(float dis, float in)
          Constructor used to create a new intensity object.
 
Method Summary
 void addIntensity(float add)
          Change the intensity of the object with this value.
 java.lang.Object clone()
          Overwritten method to return a clone of the object.
 float getDistfromap()
          Get the distance from the aft perpendicular of the current object.
 float getIntensity()
          Get the intensity value of the current object.
 java.lang.String toString()
          Overwritten method to convert the object to a String.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Intensity

public Intensity(float dis,
                 float in)
Constructor used to create a new intensity object.

Parameters:
dis - Floating point value indication the distance from the aft perpendicular.
in - Floating point value indication the intensity in t/m.
Method Detail

addIntensity

public void addIntensity(float add)
Change the intensity of the object with this value.

Parameters:
add - foating point value indicating the intensity to add in t/m (can be negative).

getIntensity

public float getIntensity()
Get the intensity value of the current object.

Returns:
Floating point value indication the intensity of the current object.

getDistfromap

public float getDistfromap()
Get the distance from the aft perpendicular of the current object.

Returns:
Floating point value indication the distance from the aft perpendicular of the current object.

toString

public java.lang.String toString()
Overwritten method to convert the object to a String.

Overrides:
toString in class java.lang.Object
Returns:
Sting with the values of the object.

clone

public java.lang.Object clone()
Overwritten method to return a clone of the object.

Overrides:
clone in class java.lang.Object
Returns:
Object clone of the object (can be cast as Intensity).