fhm.edu.fem.calc.objects
Class Element
java.lang.Object
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)
Constructor Summary |
Element(int id,
int elementType,
NodeList nodeList)
Construct a new element with the given ID, consisting of the given nodes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
elementType
protected int elementType
id
protected int id
localLogger
protected static Logger localLogger
nodeList
protected NodeList nodeList
spannungsBetrag
protected double spannungsBetrag
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 nodeelementType,
- may be FIGURE_TRIANGLE or FIGURE_PARALLELOGRAMnodeList,
- the list of nodes belonging to this element in counter-clockwise order
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