mascoptLib.graphs
Class EdgeSetFactory

java.lang.Object
  |
  +--mascoptLib.graphs.EdgeSetFactory
All Implemented Interfaces:
AbstractEdgeSetFactory

public class EdgeSetFactory
extends Object
implements AbstractEdgeSetFactory

The factory to produce Edge Sets.

Version:
Wed Feb 20 18:37:37 2002
Author:
bbongiov@bing.inria.fr

Constructor Summary
EdgeSetFactory()
           
 
Method Summary
 mascoptLib.abstractGraph.AbstractEdge newAbstractEdge(mascoptLib.abstractGraph.AbstractVertex n0, mascoptLib.abstractGraph.AbstractVertex n1)
          Constructs an edge beetween two nodes.
 mascoptLib.abstractGraph.AbstractEdgeSet newAbstractEdgeSet(mascoptLib.abstractGraph.AbstractEdgeSet edgeSet)
          Constructs a new edge set which is a sub set of an other edge set.
 mascoptLib.abstractGraph.AbstractEdgeSet newAbstractEdgeSet(mascoptLib.abstractGraph.AbstractEdgeSet es, mascoptLib.abstractGraph.AbstractVertexSet abstractNodeSet)
          Constructs a new edge set which is as sub set of an other edge set and based on a node set.
 mascoptLib.abstractGraph.AbstractEdgeSet newAbstractEdgeSet(mascoptLib.abstractGraph.AbstractVertexSet nodeSet)
          Constructs a new edge set based on a node set.
 mascoptLib.abstractGraph.AbstractPath newAbstractPath(mascoptLib.abstractGraph.AbstractEdgeSet edgeSet)
          Constructs a new chain based on a edge set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeSetFactory

public EdgeSetFactory()
Method Detail

newAbstractEdgeSet

public mascoptLib.abstractGraph.AbstractEdgeSet newAbstractEdgeSet(mascoptLib.abstractGraph.AbstractVertexSet nodeSet)
Constructs a new edge set based on a node set.

Specified by:
newAbstractEdgeSet in interface AbstractEdgeSetFactory
Parameters:
nodeSet - the node set used as base to the edge set.
Returns:
an abstract edge set empty.

newAbstractEdgeSet

public mascoptLib.abstractGraph.AbstractEdgeSet newAbstractEdgeSet(mascoptLib.abstractGraph.AbstractEdgeSet edgeSet)
Constructs a new edge set which is a sub set of an other edge set.

Specified by:
newAbstractEdgeSet in interface AbstractEdgeSetFactory
Parameters:
edgeSet - the edge set used as base to the edge set.
Returns:
an abstract edge set empty.

newAbstractEdgeSet

public mascoptLib.abstractGraph.AbstractEdgeSet newAbstractEdgeSet(mascoptLib.abstractGraph.AbstractEdgeSet es,
                                                                   mascoptLib.abstractGraph.AbstractVertexSet abstractNodeSet)
Constructs a new edge set which is as sub set of an other edge set and based on a node set. This is the most generic constructor. It permits to use a specific node set as the base of the new edge set. Then, it permits to associate the new edge set with an other edge set: the new is a sub set of the other.

Specified by:
newAbstractEdgeSet in interface AbstractEdgeSetFactory
Parameters:
es - the father edge set.
abstractNodeSet - the base of nodes of the new edge set.
Returns:
an abstract edge set empty.

newAbstractEdge

public mascoptLib.abstractGraph.AbstractEdge newAbstractEdge(mascoptLib.abstractGraph.AbstractVertex n0,
                                                             mascoptLib.abstractGraph.AbstractVertex n1)
Constructs an edge beetween two nodes.

Specified by:
newAbstractEdge in interface AbstractEdgeSetFactory
Parameters:
n0 - the first node.
n1 - the second node.
Returns:
the constructed edge.

newAbstractPath

public mascoptLib.abstractGraph.AbstractPath newAbstractPath(mascoptLib.abstractGraph.AbstractEdgeSet edgeSet)
Constructs a new chain based on a edge set. The chain is empty when constructed. Only edges from the edgeSet can be added in the chain. It modelize the fact that the chain is a subgraph of the main graph. Then, use the edge set of the graph to construct new chains.

Specified by:
newAbstractPath in interface AbstractEdgeSetFactory
Parameters:
edgeSet - the base of the chain
Returns:
a empty chain.