fhm.edu.fem.calc.objects
Class Node

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

public class Node
extends java.lang.Object

Class Description: This class acts as "node"

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

Field Summary
protected  int aliasId
           
protected  int id
           
protected  boolean isPseudoNode
           
protected  double x
           
protected  double xOriginal
           
protected  double y
           
protected  double yOriginal
           
 
Constructor Summary
Node(int id, double x, double y, boolean isPseudoNode)
          Construct a new NON-PSEUDO node with the given ID
 
Method Summary
 java.lang.Object clone()
          Clone Implementation
 boolean equals(java.lang.Object obj)
          Compare this node with another given node
 int getAliasId()
           
 int getId()
           
 double getX()
           
 double getXOriginal()
           
 double getY()
           
 double getYOriginal()
           
 boolean isPseudoNode()
           
 void setAliasId(int newId)
          Set the alias Id
 void setX(double x)
           
 void setXOriginal(double original)
           
 void setY(double y)
           
 void setYOriginal(double original)
           
 java.lang.String toString()
          Implementation of the toString() method
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

aliasId

protected int aliasId

id

protected int id

isPseudoNode

protected boolean isPseudoNode

x

protected double x

xOriginal

protected double xOriginal

y

protected double y

yOriginal

protected double yOriginal
Constructor Detail

Node

public Node(int id,
            double x,
            double y,
            boolean isPseudoNode)
Construct a new NON-PSEUDO node with the given ID

Parameters:
id, - the ID for this node
x, - the x coordinate for this node
y, - the y coordinate for this node
isPseudoNode, - true if it is, false otherwise
Method Detail

clone

public java.lang.Object clone()
Clone Implementation

Overrides:
clone in class java.lang.Object
Returns:
a clone of this list

equals

public boolean equals(java.lang.Object obj)
Compare this node with another given node

Overrides:
equals in class java.lang.Object
Parameters:
obj, - the other node

getAliasId

public int getAliasId()
Returns:
Returns the alias id.

getId

public int getId()
Returns:
Returns the id.

getX

public double getX()
Returns:
Returns the x.

getXOriginal

public double getXOriginal()
Returns:
Returns the xOriginal.

getY

public double getY()
Returns:
Returns the y.

getYOriginal

public double getYOriginal()
Returns:
Returns the yOriginal.

isPseudoNode

public boolean isPseudoNode()
Returns:
Returns the isPseudoNode.

setAliasId

public void setAliasId(int newId)
Set the alias Id

Parameters:
newId, - the new alias Id

setX

public void setX(double x)
Parameters:
x - The x to set.

setXOriginal

public void setXOriginal(double original)
Parameters:
original - The xOriginal to set.

setY

public void setY(double y)
Parameters:
y - The y to set.

setYOriginal

public void setYOriginal(double original)
Parameters:
original - The yOriginal 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 node