org.graffiti.plugins.algorithms.mnn
Class Face

java.lang.Object
  extended by org.graffiti.plugins.algorithms.mnn.Face

public class Face
extends Object

This class represents a face of a planar graph

Version:
$Revision: 5766 $ $Date: 2010-05-07 19:21:40 +0200 (Fr, 07 Mai 2010) $
Author:
Thomas

Constructor Summary
Face()
          Constructor
Face(LinkedList<Node> listNode)
          Constructor
Face(LinkedList<Node> listNode, LinkedList<Edge> listEdge)
          Constructor
 
Method Summary
 boolean contains(Node node)
          returns true, if the face contains the given node
 boolean equals(Object obj)
          returns true, if the given face is equal to this face
 LinkedList<Edge> getEdges()
          returns the edges of this face
 LinkedList<Node> getNodelist()
          returns the nodes of this face
 int getNumber()
          returns the face-number
 int getNumberOfNodes()
          returns the number of nodes of this face
 void setNumber(int num)
          set a face-number for debugging
 String toString()
          toString()
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Face

public Face()
Constructor


Face

public Face(LinkedList<Node> listNode)
Constructor

Parameters:
listNode - the nodes of the face

Face

public Face(LinkedList<Node> listNode,
            LinkedList<Edge> listEdge)
Constructor

Parameters:
listNode - the nodes of the face
listEdge - the edges of the face
Method Detail

getEdges

public LinkedList<Edge> getEdges()
returns the edges of this face

Returns:
the edges

getNodelist

public LinkedList<Node> getNodelist()
returns the nodes of this face

Returns:
the nodes

getNumberOfNodes

public int getNumberOfNodes()
returns the number of nodes of this face

Returns:
the number of nodes

setNumber

public void setNumber(int num)
set a face-number for debugging

Parameters:
num -

getNumber

public int getNumber()
returns the face-number

Returns:
the face number

contains

public boolean contains(Node node)
returns true, if the face contains the given node

Parameters:
node - the node
Returns:
true, if the face contains this node, false otherwise

equals

public boolean equals(Object obj)
returns true, if the given face is equal to this face

Overrides:
equals in class Object

toString

public String toString()
toString()

Overrides:
toString in class Object


Generated at 2012-05-30 11:01:25 PM CEST