mascoptLib.abstractGraph
Interface AbstractEdgeSetFactory

All Known Implementing Classes:
ArcSetFactory, EdgeSetFactory

public interface AbstractEdgeSetFactory

The Factory building Edge Sets.


Method Summary
 AbstractEdge newAbstractEdge(AbstractVertex x, AbstractVertex y)
          Constructs an edge beetween two vertices.
 AbstractEdgeSet newAbstractEdgeSet(AbstractEdgeSet edgeSet)
          Constructs a new edge set which is a sub set of an other edge set.
 AbstractEdgeSet newAbstractEdgeSet(AbstractEdgeSet es, AbstractVertexSet abstractVertexSet)
          Constructs a new edge set which is as sub set of an other edge set and based on a vertex set.
 AbstractEdgeSet newAbstractEdgeSet(AbstractVertexSet vertexSet)
          Constructs a new edge set based on a vertex set.
 AbstractPath newAbstractPath(AbstractEdgeSet edgeSet)
          Constructs a new path based on a edge set.
 

Method Detail

newAbstractEdgeSet

public AbstractEdgeSet newAbstractEdgeSet(AbstractVertexSet vertexSet)
Constructs a new edge set based on a vertex set.

Parameters:
vertexSet - the vertex set used as base to the edge set.
Returns:
an abstract edge set empty.

newAbstractEdgeSet

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

Parameters:
edgeSet - the edge set used as base to the edge set.
Returns:
an abstract edge set empty.

newAbstractEdgeSet

public AbstractEdgeSet newAbstractEdgeSet(AbstractEdgeSet es,
                                          AbstractVertexSet abstractVertexSet)
Constructs a new edge set which is as sub set of an other edge set and based on a vertex set. This is the most generic constructor. It permits to use a specific vertex 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.

Parameters:
es - the father edge set.
abstractVertexSet - the base of vertices of the new edge set.
Returns:
an abstract edge set empty.

newAbstractEdge

public AbstractEdge newAbstractEdge(AbstractVertex x,
                                    AbstractVertex y)
Constructs an edge beetween two vertices.

Parameters:
x - the first vertex.
y - the second vertex.
Returns:
the constructed edge.

newAbstractPath

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

Parameters:
edgeSet - the base of the path
Returns:
a empty path.