mascoptLib.abstractGraph
Class AbstractPathSet
java.lang.Object
mascoptLib.util.ObservableObject
mascoptLib.abstractGraph.MascoptObject
mascoptLib.abstractGraph.MascoptFixedSet
mascoptLib.abstractGraph.MascoptSet
mascoptLib.abstractGraph.AbstractGraphSet
mascoptLib.abstractGraph.AbstractPathSet
- All Implemented Interfaces:
- Cloneable, Collection, MascoptObjectInterface, MascoptWritableInterface, Observer, Set
- Direct Known Subclasses:
- DiPathSet, PathSet
- public abstract class AbstractPathSet
- extends AbstractGraphSet
The AbstractPathSet class is derivated from AbstractGraphSet. It allow to group
AbstractPath objects in a set.
- Author:
- Jean-Francois Lalande (Jean-Francois.Lalande@sophia.inria.fr)
| Methods inherited from class mascoptLib.abstractGraph.MascoptSet |
add, add, addAll, clear, remove, remove, removeAll, removeAllValuesOnElementsOfset, retainAll, setValueForAllElements, setValueForAllElements |
| Methods inherited from class mascoptLib.abstractGraph.MascoptFixedSet |
contains, containsAll, countAllSets, equals, free, getDOMTagHierarchy, getDOMTagName, getSuperSet, hashCode, isEmpty, isSubSet, iterator, setSuperSet, size, toArray, toArray, toArray, toDOMTree, 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, removeAllValues, setDoubleValue, setDoubleValue, setDouValue, setDouValue, setIntegerValue, setIntegerValue, setIntValue, setIntValue, setName, setValue, setValue, setValue, setValue, setValue, setValue, toDOMTreeAsRef |
| Methods inherited from class mascoptLib.util.ObservableObject |
addAddObserver, addRemoveObserver, addValueObserver, countAddObservers, countRemoveObservers, countValueObservers, deleteAddObserver, deleteAddObserver, deleteRemoveObserver, deleteRemoveObserver, deleteValueObserver, deleteValueObserver |
AbstractPathSet
public AbstractPathSet()
- Default Constructor.
AbstractPathSet
public AbstractPathSet(AbstractPathSet superSet)
- Constructor creating a sub set of the PathSet.
The sub set created contains no elements of the
superSet. The set
can easily be filled with the method add or
addAll.
- Parameters:
superSet - the set of paths on which is based the path set
created.
AbstractPathSet
public AbstractPathSet(AbstractPathSet originalSet,
boolean copyElements)
- Constructor for copy sets.
Creates a new
AbstractPathSet 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 but the set is not a subset of originalSet.
- Parameters:
originalSet - - the set to be copied.copyElements - - indicates if the elements of the set have to be duplicated
add
public boolean add(AbstractPath o)
- Add a path in the set.
- Parameters:
o - the path that must be added in the set.
- Returns:
- true if the path has been added in the set.
remove
public boolean remove(AbstractPath o)
- Remove a path in the set.
- Parameters:
o - the path that must be removed in the set.
- Returns:
- true if the path has been removed in the set.