|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mascoptLib.util.ObservableObject | +--mascoptLib.abstractGraph.MascoptObject | +--mascoptLib.abstractGraph.MascoptFixedSet | +--mascoptLib.abstractGraph.MascoptSet | +--mascoptLib.abstractGraph.AbstractEdgeSet | +--mascoptLib.graphs.ArcSet
The EdgeSet and ArcSet class are derivated from MascoptSet. It allow to group Edge objects, respectively Arc objects, in a set.
Field Summary |
Fields inherited from class mascoptLib.abstractGraph.MascoptFixedSet |
initialCapacity, loadFactor |
Constructor Summary | |
ArcSet()
Default constructor. |
|
ArcSet(mascoptLib.graphs.ArcSet arcSet)
Creates a subset of a set of arcs. |
|
ArcSet(mascoptLib.graphs.ArcSet originalSet,
boolean copyElements)
Constructor for copy sets. |
|
ArcSet(mascoptLib.graphs.ArcSet arcSet,
mascoptLib.graphs.VertexSet nodeSet)
Create a subset of a set of arcs based on another node set. |
|
ArcSet(mascoptLib.graphs.VertexSet nodeSet)
This constructor creates an set of arcs based on a set of nodes. |
Method Summary | |
boolean |
add(mascoptLib.graphs.Arc o)
Adds an arc in the arc set |
mascoptLib.abstractGraph.AbstractEdgeSetFactory |
getFactory()
Returns the library objects factory. |
mascoptLib.graphs.VertexSet |
getVertexSet()
Returns the node set on wich is based the edge set |
boolean |
remove(mascoptLib.graphs.Arc o)
Removes an arc from arc set |
Methods inherited from class mascoptLib.abstractGraph.AbstractEdgeSet |
add, addAll, countAllAbstractEdgeSets, free, getAbstractVertexSet, remove, update |
Methods inherited from class mascoptLib.abstractGraph.MascoptSet |
add, add, addAll, clear, remove, remove, removeAll, removeAllValues, removeAllValuesOnElementsOfset, retainAll, setValueForAllElements, setValueForAllElements |
Methods inherited from class mascoptLib.abstractGraph.MascoptFixedSet |
contains, containsAll, countAllSets, equals, getSuperSet, hashCode, isEmpty, isSubSet, iterator, setSuperSet, size, toArray, toArray, toArray, toString |
Methods inherited from class mascoptLib.abstractGraph.MascoptObject |
copyValues, countAllObjects, deleteValue, deleteValue, existValue, existValue, getDoubleValue, getDoubleValue, getDouValue, getDouValue, getId, getIntegerValue, getIntegerValue, getIntValue, getIntValue, getName, getValue, getValue, getValueContexts, getValueDataType, getValueDataType, getValueEntries, notifyOnValueChange, setDoubleValue, setDoubleValue, setDouValue, setDouValue, setIntegerValue, setIntegerValue, setIntValue, setIntValue, setName, setValue, setValue, setValue, setValue, setValue, setValue |
Methods inherited from class mascoptLib.util.ObservableObject |
addAddObserver, addRemoveObserver, addValueObserver, countAddObservers, countRemoveObservers, countValueObservers, deleteAddObserver, deleteAddObserver, deleteRemoveObserver, deleteRemoveObserver, deleteValueObserver, deleteValueObserver |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
contains, containsAll, equals, hashCode, isEmpty, iterator, size, toArray, toArray |
Constructor Detail |
public ArcSet()
public ArcSet(mascoptLib.graphs.VertexSet nodeSet)
nodeSet
- the set of nodes base of arcs.public ArcSet(mascoptLib.graphs.ArcSet arcSet)
add
or addAll
.
arcSet
- the set of edgespublic ArcSet(mascoptLib.graphs.ArcSet arcSet, mascoptLib.graphs.VertexSet nodeSet)
arcSet
- the parent set of arcsnodeSet
- the parent set of nodespublic ArcSet(mascoptLib.graphs.ArcSet originalSet, boolean copyElements)
ArcSet
similar to originalSet
.
If copyElements
is set to true
then all the elements of originalSet
are duplicated (and of course their id is changed)
and the structure of the set is preserved (there exists an isomorphism between originalSet
and the new set).
In that case, the simple values are also copied, but those depending on a context are dropped.
If copyElements
is set to false
, then the new set's elements point to those of originalSet
.
originalSet
- - the set to be copied.copyElements
- - indicates if the elements of the set have to be duplicatedMethod Detail |
public mascoptLib.abstractGraph.AbstractEdgeSetFactory getFactory()
getFactory
in class AbstractEdgeSet
public boolean add(mascoptLib.graphs.Arc o)
o
- the arc to addpublic boolean remove(mascoptLib.graphs.Arc o)
o
- the arc to removepublic mascoptLib.graphs.VertexSet getVertexSet()
NodeSet
attached to this ArcSet
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |