|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfhm.edu.fem.calc.objects.NodeList
public class NodeList
Class Description: This class acts as node list. It takes the node index from the node itself
Field Summary | |
---|---|
protected java.util.ArrayList<Node> |
nodes
|
Constructor Summary | |
---|---|
NodeList()
Create a new node list |
Method Summary | |
---|---|
void |
addAll(NodeList list)
Add all nodes from the given list to this list |
void |
clear()
Clear the list |
java.lang.Object |
clone()
Clone Implementation |
boolean |
contains(Node node)
Search for a specific node |
NodeList |
createAliasIDs(int aliasIDCounter,
NodeList borderNodeList)
Create the Alias IDs for all nodes in this list |
java.util.ArrayList<Node> |
getList()
|
Node |
getNode(int nodeIndex)
Retrieve a node with the given index from the list |
Node |
getNodeInCorrectOrder(int i)
Retrieve the nodes in the correct order |
double |
getX(int nodeIndex)
Retrieve the x-value of a specific node from the list |
double |
getY(int nodeIndex)
Retrieve the y-value of a specific node from the list |
void |
setCenterNodeAtBeginning(Node node)
Set the center node at the beginning of the list |
void |
setNode(Node node)
Set a new node in the list. |
int |
size()
Retrieve the number of nodes in the list |
java.lang.Object[] |
toArray()
Convert this list to an array of nodes |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList<Node> nodes
Constructor Detail |
---|
public NodeList()
Method Detail |
---|
public void addAll(NodeList list)
list,
- the node listpublic void clear()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean contains(Node node)
node,
- the node to search
public NodeList createAliasIDs(int aliasIDCounter, NodeList borderNodeList)
int,
- the start alias IDborderNodeList,
- the list of all border nodes
public java.util.ArrayList<Node> getList()
public Node getNode(int nodeIndex)
nodeIndex
-
public Node getNodeInCorrectOrder(int i) throws java.lang.IndexOutOfBoundsException
i,
- the index (not the node's index)
java.lang.IndexOutOfBoundsException
public double getX(int nodeIndex)
nodeIndex
-
public double getY(int nodeIndex)
nodeIndex
-
public void setCenterNodeAtBeginning(Node node)
node,
- the center nodepublic void setNode(Node node)
node,
- the node to setpublic int size()
public java.lang.Object[] toArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |