Package org.jgrapht.alg
Class AbstractPathElementList<V,E,T extends AbstractPathElement<V,E>>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- org.jgrapht.alg.AbstractPathElementList<V,E,T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>,java.util.Collection<T>,java.util.List<T>
- Direct Known Subclasses:
RankingPathElementList
@Deprecated abstract class AbstractPathElementList<V,E,T extends AbstractPathElement<V,E>> extends java.util.AbstractList<T>Deprecated.moved in shortest path packageList of pathsAbstractPathElementwith same target vertex.- Since:
- July 5, 2007
-
-
Field Summary
Fields Modifier and Type Field Description protected Graph<V,E>graphDeprecated.protected intmaxSizeDeprecated.Max number of stored paths.protected java.util.ArrayList<T>pathElementsDeprecated.Stored paths, list ofAbstractPathElement.protected VvertexDeprecated.Target vertex of the paths.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPathElementList(Graph<V,E> graph, int maxSize, AbstractPathElementList<V,E,T> elementList, E edge)Deprecated.Creates paths obtained by concatenating the specified edge to the specified paths.protectedAbstractPathElementList(Graph<V,E> graph, int maxSize, T pathElement)Deprecated.Creates a list with an empty path.protectedAbstractPathElementList(Graph<V,E> graph, int maxSize, V vertex)Deprecated.Creates an empty list.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Tget(int index)Deprecated.Returns pathAbstractPathElementstored at the specified index.VgetVertex()Deprecated.Returns target vertex.intsize()Deprecated.Returns the number of paths stored in the list.-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
maxSize
protected int maxSize
Deprecated.Max number of stored paths.
-
pathElements
protected java.util.ArrayList<T extends AbstractPathElement<V,E>> pathElements
Deprecated.Stored paths, list ofAbstractPathElement.
-
vertex
protected V vertex
Deprecated.Target vertex of the paths.
-
-
Constructor Detail
-
AbstractPathElementList
protected AbstractPathElementList(Graph<V,E> graph, int maxSize, AbstractPathElementList<V,E,T> elementList, E edge)
Deprecated.Creates paths obtained by concatenating the specified edge to the specified paths.- Parameters:
maxSize- maximum number of paths the list is able to store.elementList- paths, list ofAbstractPathElement.edge- edge reaching the end vertex of the created paths.- Throws:
java.lang.NullPointerException- if the specified prevPathElementList or edge isnull.java.lang.IllegalArgumentException- ifmaxSizeis negative or 0.
-
AbstractPathElementList
protected AbstractPathElementList(Graph<V,E> graph, int maxSize, T pathElement)
Deprecated.Creates a list with an empty path. The list size is 1.- Parameters:
maxSize- maximum number of paths the list is able to store.- Throws:
java.lang.NullPointerException- if the specified path-element isnull.java.lang.IllegalArgumentException- ifmaxSizeis negative or 0.java.lang.IllegalArgumentException- ifpathElementis not empty.
-
AbstractPathElementList
protected AbstractPathElementList(Graph<V,E> graph, int maxSize, V vertex)
Deprecated.Creates an empty list. The list size is 0.- Parameters:
maxSize- maximum number of paths the list is able to store.- Throws:
java.lang.IllegalArgumentException- ifmaxSizeis negative or 0.
-
-
Method Detail
-
get
public T get(int index)
Deprecated.Returns pathAbstractPathElementstored at the specified index.- Specified by:
getin interfacejava.util.List<V>- Specified by:
getin classjava.util.AbstractList<T extends AbstractPathElement<V,E>>
-
getVertex
public V getVertex()
Deprecated.Returns target vertex.
-
-