|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfhm.edu.fem.calc.objects.Node
public class Node
Class Description: This class acts as "node"
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 |
---|
protected int aliasId
protected int id
protected boolean isPseudoNode
protected double x
protected double xOriginal
protected double y
protected double yOriginal
Constructor Detail |
---|
public Node(int id, double x, double y, boolean isPseudoNode)
id,
- the ID for this nodex,
- the x coordinate for this nodey,
- the y coordinate for this nodeisPseudoNode,
- true if it is, false otherwiseMethod Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj,
- the other nodepublic int getAliasId()
public int getId()
public double getX()
public double getXOriginal()
public double getY()
public double getYOriginal()
public boolean isPseudoNode()
public void setAliasId(int newId)
newId,
- the new alias Idpublic void setX(double x)
x
- The x to set.public void setXOriginal(double original)
original
- The xOriginal to set.public void setY(double y)
y
- The y to set.public void setYOriginal(double original)
original
- The yOriginal to set.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |