mascoptLib.graphs
Class ArcSetFactory

java.lang.Object
  extended bymascoptLib.graphs.ArcSetFactory
All Implemented Interfaces:
AbstractEdgeSetFactory

public class ArcSetFactory
extends Object
implements AbstractEdgeSetFactory

The factory to produce Ars Sets.


Constructor Summary
ArcSetFactory()
           
 
Method Summary
 AbstractEdge newAbstractEdge(AbstractVertex n0, AbstractVertex n1)
          Constructs an edge beetween two nodes.
 AbstractEdgeSet newAbstractEdgeSet(AbstractEdgeSet edgeSet)
          Constructs a new edge set which is a sub set of an other edge set.
 AbstractEdgeSet newAbstractEdgeSet(AbstractEdgeSet es, AbstractVertexSet abstractNodeSet)
          Constructs a new edge set which is as sub set of an other edge set and based on a node set.
 AbstractEdgeSet newAbstractEdgeSet(AbstractVertexSet nodeSet)
          Constructs a new edge set based on a node set.
 AbstractPath newAbstractPath(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

ArcSetFactory

public ArcSetFactory()
Method Detail

newAbstractEdgeSet

public AbstractEdgeSet newAbstractEdgeSet(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 AbstractEdgeSet newAbstractEdgeSet(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 AbstractEdgeSet newAbstractEdgeSet(AbstractEdgeSet es,
                                          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 AbstractEdge newAbstractEdge(AbstractVertex n0,
                                    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 AbstractPath newAbstractPath(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.