fhm.edu.fem.calc.objects
Class CTab

java.lang.Object
  extended by 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)

Field Summary
protected  int id
           
protected  Node leftNode
           
protected static Logger localLogger
           
protected  Node midNode
           
protected  Node rightNode
           
 
Constructor Summary
CTab(int id, Node leftNode, Node midNode, Node rightNode)
          Construct a new CTab
 
Method Summary
 int getId()
           
 Node getLeftNode()
           
 Node getMidNode()
           
 Node getNode(int i)
          Returns the node depending on i usage: i = 1 (left node), 2 (mid node), 3 (right node)
 Node getRightNode()
           
 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

id

protected int id

leftNode

protected Node leftNode

localLogger

protected static Logger localLogger

midNode

protected Node midNode

rightNode

protected Node rightNode
Constructor Detail

CTab

public CTab(int id,
            Node leftNode,
            Node midNode,
            Node rightNode)
Construct a new CTab

Parameters:
id, - the ID number
leftNode, - the left node
midNode, - the middle node
rightNode, - the right node
Method Detail

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