|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhstralsund.vinets.structure.Face
public class Face
A structure that may symbolize either a Face or also a Chain (a path through graph). Common property is, that Nodes and Edges alternate in enumerations of the structures elements. Also, when creating this structure, elements must be inserted in a way that preserves the alternating order.
Constructor Summary | |
---|---|
Face()
|
Method Summary | |
---|---|
void |
addAll(Face face)
Adds all NetElements of the passed Face to the end of this Face. |
void |
addAll(java.util.List list)
Adds all NetElements of the passed List to the end of this Face. |
void |
addFirst(NetElement el)
Adds an NetElement the the front of this Face. |
void |
addLast(NetElement el)
Adds an NetElement the the end of this Face. |
java.lang.Object |
clone()
|
boolean |
contains(NetElement element)
Tests whether the Face contains the passed NetElement |
int |
countEdges()
Returns the number of Edges contained in this Face |
int |
countNodes()
Returns the number of Nodes contained in this Face |
java.util.List |
edgeList()
Returns a List of the Edges contained in this Face. |
java.util.Iterator |
edges()
Returns an Iterator over the Edges of the Face. |
java.util.Iterator |
elements()
Returns an Iterator over the Elements of the Face. |
java.util.Iterator |
elementsCyclic()
Returns an cyclic Iterator over the Face elements. |
boolean |
equals(java.lang.Object obj)
|
NetElement |
getFirst()
Returns the first NetElement of the Face |
NetElement |
getLast()
Returns the last NetElement of the Face |
void |
insertAsChain(NetElement after,
Face face)
Inserts the passed Face into a selected position in this Face. |
int |
length()
Returns the number of Elements contained in this Face |
java.util.List |
nodeList()
Returns a List of the Nodes contained in this Face. |
java.util.Iterator |
nodes()
Returns an Iterator over the Nodes of the Face. |
void |
remove(NetElement element)
Removes either the first or the last NetElement of the Face. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Face()
Method Detail |
---|
public void addFirst(NetElement el)
el
- The NetElement to be added to the frontpublic void addLast(NetElement el)
el
- The NetElement to be added to the endpublic void addAll(java.util.List list)
list
- A List with NetElements to addpublic void addAll(Face face)
face
- A Face to addpublic void insertAsChain(NetElement after, Face face)
after
- The NetElement in this Face, after which the Face shall be
appended. if this is null 'face' will be appended to the endface
- The Face to be appendedpublic void remove(NetElement element)
element
- The NetElement to be removed, should be the first or the last NetElement
of this face.public NetElement getFirst()
public NetElement getLast()
public java.util.Iterator elements()
public java.util.Iterator elementsCyclic()
public java.util.Iterator nodes()
public java.util.List nodeList()
public java.util.Iterator edges()
public java.util.List edgeList()
public int length()
public int countNodes()
public int countEdges()
public boolean contains(NetElement element)
element
- The NetElement
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |