fhm.edu.fem.calc.objects
Class Element

java.lang.Object
  extended by fhm.edu.fem.calc.objects.Element

public class Element
extends java.lang.Object

Class Description: This class acts as "element"

Author:
Thomas Woellert (thomas@woellert.net), Stefan Weissbach (weissbst@gmx.de)

Field Summary
protected  int elementType
           
protected  int id
           
protected static Logger localLogger
           
protected  NodeList nodeList
           
protected  double spannungsBetrag
           
 
Constructor Summary
Element(int id, int elementType, NodeList nodeList)
          Construct a new element with the given ID, consisting of the given nodes
 
Method Summary
 int getElementType()
          Retrieve the element type
 int getId()
           
 NodeList getNodeList()
           
 double getSpannungsBetrag()
           
 void setSpannungsBetrag(double spannungsBetrag)
           
 java.lang.String toString()
          Implementation of the toString() method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

elementType

protected int elementType

id

protected int id

localLogger

protected static Logger localLogger

nodeList

protected NodeList nodeList

spannungsBetrag

protected double spannungsBetrag
Constructor Detail

Element

public Element(int id,
               int elementType,
               NodeList nodeList)
Construct a new element with the given ID, consisting of the given nodes

Parameters:
id, - the ID for this node
elementType, - may be FIGURE_TRIANGLE or FIGURE_PARALLELOGRAM
nodeList, - the list of nodes belonging to this element in counter-clockwise order
Method Detail

getElementType

public int getElementType()
Retrieve the element type

Returns:
either FIGURE_TRIANGLE or FIGURE_PARALLELOGRAM

getId

public int getId()
Returns:
Returns the id.

getNodeList

public NodeList getNodeList()
Returns:
Returns the nodeList.

getSpannungsBetrag

public double getSpannungsBetrag()
Returns:
Returns the spannungsBetrag.

setSpannungsBetrag

public void setSpannungsBetrag(double spannungsBetrag)
Parameters:
spannungsBetrag - The spannungsBetrag to set.

toString

public java.lang.String toString()
Implementation of the toString() method

Overrides:
toString in class java.lang.Object
Returns:
a string visualization of the element