fhm.edu.fem.calc.objects
Class CTab
java.lang.Object
fhm.edu.fem.calc.objects.CTab
public class CTab
- extends java.lang.Object
Class Description:
This class represents a "ctab"
- Author:
- Thomas Woellert (thomas@woellert.net), Stefan Weissbach (weissbst@gmx.de)
Constructor Summary |
CTab(int id,
Node leftNode,
Node midNode,
Node rightNode)
Construct a new CTab |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
id
protected int id
leftNode
protected Node leftNode
localLogger
protected static Logger localLogger
midNode
protected Node midNode
rightNode
protected Node rightNode
CTab
public CTab(int id,
Node leftNode,
Node midNode,
Node rightNode)
- Construct a new CTab
- Parameters:
id,
- the ID numberleftNode,
- the left nodemidNode,
- the middle noderightNode,
- the right node
getId
public int getId()
- Returns:
- Returns the id.
getLeftNode
public Node getLeftNode()
- Returns:
- Returns the left node.
getMidNode
public Node getMidNode()
- Returns:
- Returns the mid node.
getNode
public Node getNode(int i)
- Returns the node depending on i
usage: i = 1 (left node), 2 (mid node), 3 (right node)
- Parameters:
i,
- may be 1 (left node), 2 (mid node), 3 (right node)
- Returns:
- the requested node
getRightNode
public Node getRightNode()
- Returns:
- Returns the right node.
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