public class ClosestFacilityPaths<T> extends java.util.ArrayList<ClosestFacilityPath<T>>
Closest Facility Analysis Results Path Set.
| Modifier and Type | Field and Description |
|---|---|
int[] |
facilityIndexes
Closest facility point index set.
|
| Constructor and Description |
|---|
ClosestFacilityPaths()
The Constructor.
|
ClosestFacilityPaths(ClosestFacilityPaths<T> paths)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ClosestFacilityPath<T> e)
Add a closest facility analysis result.
|
boolean |
equals(java.lang.Object obj)
Compares whether the specified object equals to the current
ClosestFacilityPaths object. |
ClosestFacilityPath<T> |
getFacilityPath(T facility)
Obtain the path between the event point and the facility according to the facility points which meet the condition.
|
T[] |
getFoundFacility()
Get the closest facility point set.
|
int |
hashCode()
Get the hash code of the closest facility analysis result set object.
|
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizepublic int[] facilityIndexes
Closest facility point index set.
The nearest facility index identifies the location of the facility in the sequence of the selected facility points(starting from 0).
public ClosestFacilityPaths()
The Constructor.
public ClosestFacilityPaths(ClosestFacilityPaths<T> paths)
The Constructor.
paths - The closest facility analysis result path set.public ClosestFacilityPath<T> getFacilityPath(T facility)
Obtain the path between the event point and the facility according to the facility points which meet the condition.
facility - The facility points which meet the condition. The parameter should be a feature in the getFoundFacility() set, otherwise it returns null.public boolean add(ClosestFacilityPath<T> e)
Add a closest facility analysis result.
add in interface java.util.Collection<ClosestFacilityPath<T>>add in interface java.util.List<ClosestFacilityPath<T>>add in class java.util.ArrayList<ClosestFacilityPath<T>>e - The closest facility analysis result path.public T[] getFoundFacility()
Get the closest facility point set.
public int hashCode()
Get the hash code of the closest facility analysis result set object.
hashCode in interface java.util.Collection<ClosestFacilityPath<T>>hashCode in interface java.util.List<ClosestFacilityPath<T>>hashCode in class java.util.AbstractList<ClosestFacilityPath<T>>public boolean equals(java.lang.Object obj)
Compares whether the specified object equals to the current ClosestFacilityPaths object.
equals in interface java.util.Collection<ClosestFacilityPath<T>>equals in interface java.util.List<ClosestFacilityPath<T>>equals in class java.util.AbstractList<ClosestFacilityPath<T>>obj - the object to compare with the current ClosestFacilityPaths object.