mascoptLib.graphs
Class VertexSetFactory

java.lang.Object
  |
  +--mascoptLib.graphs.VertexSetFactory
All Implemented Interfaces:
AbstractVertexSetFactory

public class VertexSetFactory
extends Object
implements AbstractVertexSetFactory

The factory to produce Vertex Sets.

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

Constructor Summary
VertexSetFactory()
           
 
Method Summary
 mascoptLib.abstractGraph.AbstractVertex newAbstractVertex()
          Default node constructor.
 mascoptLib.abstractGraph.AbstractVertex newAbstractVertex(double x, double y)
          Constructs a node with coordinates.
 mascoptLib.abstractGraph.AbstractVertexSet newAbstractVertexSet()
          Default node set constructor.
 mascoptLib.abstractGraph.AbstractVertexSet newAbstractVertexSet(mascoptLib.abstractGraph.AbstractVertexSet nodeSet)
          Constructs a new node set based on a node set.
 mascoptLib.abstractGraph.AbstractVertexSet newAbstractVertexSet(mascoptLib.abstractGraph.AbstractVertexSet nodeSet, boolean copyElements)
          Constructs a new node set based on a node set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VertexSetFactory

public VertexSetFactory()
Method Detail

newAbstractVertexSet

public mascoptLib.abstractGraph.AbstractVertexSet newAbstractVertexSet()
Default node set constructor.

Specified by:
newAbstractVertexSet in interface AbstractVertexSetFactory

newAbstractVertexSet

public mascoptLib.abstractGraph.AbstractVertexSet newAbstractVertexSet(mascoptLib.abstractGraph.AbstractVertexSet nodeSet)
Constructs a new node set based on a node set. The newly constructed NodeSet is a subset of nodeSet.

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

newAbstractVertexSet

public mascoptLib.abstractGraph.AbstractVertexSet newAbstractVertexSet(mascoptLib.abstractGraph.AbstractVertexSet nodeSet,
                                                                       boolean copyElements)
Constructs a new node set based on a node set. If copyElements is true, the newly constructed NodeSet is independant of nodeSet but an isomorphism exists between the two sets. Otherwise it is a subset.

Specified by:
newAbstractVertexSet in interface AbstractVertexSetFactory
Parameters:
nodeSet - the node set used as base to the node set.
copyElements - a boolean indicating the behaviour of this copy constructor.
Returns:
an abstract node set empty.

newAbstractVertex

public mascoptLib.abstractGraph.AbstractVertex newAbstractVertex()
Default node constructor.

Specified by:
newAbstractVertex in interface AbstractVertexSetFactory

newAbstractVertex

public mascoptLib.abstractGraph.AbstractVertex newAbstractVertex(double x,
                                                                 double y)
Constructs a node with coordinates.

Specified by:
newAbstractVertex in interface AbstractVertexSetFactory
Parameters:
x - the x position
y - the y position