Package hec.heclib.dss
Class DataReferenceSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
hec.heclib.dss.DataReferenceSet
- All Implemented Interfaces:
Transferable,Serializable,Cloneable,Iterable,Collection,List,RandomAccess
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.Vector
capacityIncrement, elementCount, elementDataFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDataReferenceSet(Vector pathnames) DataReferenceSet(Vector pathnames, String dssFilename) -
Method Summary
Modifier and TypeMethodDescriptionclone()booleancontainsString(String string) elementAt(int idx) expand()Expands all DataRefence to have a single pathname for each oneexpand(boolean regardlessIfTimeSet) Expands all DataRefence to have a single pathname for each one, except if regardlessIfTimeSet = false and that set has a time window set for it.get(int idx) intgetFilesAndPathnames(Vector filenames, Vector paths) Gets the PathnameSet attribute of the DataReferenceSet objectgetPathnameSet(boolean expand) Gets the PathnameSet attribute of the DataReferenceSet objectgetTransferData(DataFlavor flavor) booleanbooleanintindexOfString(String string) booleanisDataFlavorSupported(DataFlavor flavor) intbooleanremovePathname(int element) voidsetTimeWindow(HecTime start, HecTime end) voidsetTimeWindowString(String timeWindow) voidsetWaterYear(HecTime waterYearStartDate) Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elements, ensureCapacity, equals, firstElement, forEach, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Field Details
-
dssPathnameFlavor
-
-
Constructor Details
-
DataReferenceSet
public DataReferenceSet() -
DataReferenceSet
-
DataReferenceSet
-
-
Method Details
-
get
-
elementAt
-
getPathnameSet
Gets the PathnameSet attribute of the DataReferenceSet object- Returns:
- vector of all pathnames, with time series expanded (all pathnames for the time series sequence)
-
getPathnameSet
Gets the PathnameSet attribute of the DataReferenceSet object- Returns:
- vector of all pathnames, if expand = true with time series expanded (all pathnames for the time series sequence), if expand = false, then just the nominal pathname for a time series sequence.
-
getFilesAndPathnames
- Parameters:
filenames- Vectorpaths- Vector returns a vector of file names and a vector of vectors of corresponding pathnames For each file name, the same element in paths is a vector of the pathnames that go with that file. No file names are duplicated.
-
expand
Expands all DataRefence to have a single pathname for each one -
expand
Expands all DataRefence to have a single pathname for each one, except if regardlessIfTimeSet = false and that set has a time window set for it. -
numberPathnames
public int numberPathnames() -
setWaterYear
-
hasWaterYear
public boolean hasWaterYear() -
hasCollections
public boolean hasCollections() -
expandCollections
-
expandWaterYear
-
removePathname
public boolean removePathname(int element) -
setTimeWindowString
-
setTimeWindow
-
clone
-
getTimeWindow
-
containsString
-
indexOfString
-
getTransferDataFlavors
- Specified by:
getTransferDataFlavorsin interfaceTransferable
-
isDataFlavorSupported
- Specified by:
isDataFlavorSupportedin interfaceTransferable
-
getTransferData
- Specified by:
getTransferDatain interfaceTransferable
-