Package hec.data.tx
Class TimeSeriesGroup
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.data.tx.TimeSeriesGroup
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,Modifiable
Represents a database time series group owned by a time series category.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new timeseries group.TimeSeriesGroup(TimeSeriesGroupRef group, String groupDescription, String locAliasId, String timeSeriesRef) TimeSeriesGroup(String groupId, TimeSeriesCategoryRef categoryRef, String groupDescription, String dbOfficeId, String sharedLocAliasId, String sharedTimeSeriesRef) Instantiates a new timeseries group.TimeSeriesGroup(org.jdom.Element element) Instantiates a new timeseries group. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssignedTimeSeries(AssignedTimeSeries newTimeSeries) voidaddAssignedTimeSeriesToEnd(AssignedTimeSeries newTimeSeries) voidprotected AssignedTimeSeriesbuildAssignedTimeSeries(org.jdom.Element element) voidbuildElement(org.jdom.Element element) Builds the element.booleancontainsTimeSeriesRef(String tsId) Gets the assigned timeseries by reference, this is not a copy so be careful.Gets a list containing the assigned timeseries sorted by assigned_timeseries.attribute.Gets the category id from the containing category.Gets the category ref.Gets the db office id.Gets the group description.getId()Gets the group id.voidvoidremoveTimeSeries(String tsId) voidsetAssignedTimeSeries(Set<AssignedTimeSeries> newSeries) Sets the assigned timeseries.voidsetCategoryRef(TimeSeriesCategoryRef categoryRef) Sets the category ref.voidsetDbOfficeId(String dbOfficeId) Sets the db office id.voidsetGroupDescription(String groupDescription) Sets the group description.voidSets the group id.voidsetSharedTsAliasId(String aliasId) voidsetSharedTsRef(String sharedLocRef) voidsetTimeSeriesGroupRef(TimeSeriesGroupRef tsGroupRef) toString()Returns a String concatenation of the category id and group id separated by a "-".Methods inherited from class hec.lang.NamedType
addModifiableListener, clone, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getFieldObject, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setFieldObject, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
DESCRIPTION
- See Also:
-
TS_GROUP_REF
- See Also:
-
ASSIGNED_TS_SET
- See Also:
-
ASSIGNED_TS
- See Also:
-
TS_REF
- See Also:
-
ELEMENT
- See Also:
-
-
Constructor Details
-
TimeSeriesGroup
public TimeSeriesGroup()Instantiates a new timeseries group. -
TimeSeriesGroup
public TimeSeriesGroup(String groupId, TimeSeriesCategoryRef categoryRef, String groupDescription, String dbOfficeId, String sharedLocAliasId, String sharedTimeSeriesRef) Instantiates a new timeseries group.- Parameters:
groupId- the group idcategoryRef- the category refgroupDescription- the group descriptiondbOfficeId- the db office idsharedLocAliasId- Shared timeseries alias assigned to all members of this group by virtue of membershipsharedTimeSeriesRef- Shared reference to existing timeseries assigned to all members of this group by virtue of membership
-
TimeSeriesGroup
public TimeSeriesGroup(TimeSeriesGroupRef group, String groupDescription, String locAliasId, String timeSeriesRef) -
TimeSeriesGroup
public TimeSeriesGroup(org.jdom.Element element) Instantiates a new timeseries group.- Parameters:
element- the element
-
-
Method Details
-
getTimeSeriesGroupRef
-
setTimeSeriesGroupRef
-
buildAssignedTimeSeries
-
buildElement
public void buildElement(org.jdom.Element element) Builds the element.- Parameters:
element- the element
-
getGroupDescription
Gets the group description.- Returns:
- the group description
-
setGroupDescription
Sets the group description.- Parameters:
groupDescription- the new group description
-
getId
Gets the group id.- Returns:
- the group id
-
setId
Sets the group id.- Parameters:
groupId- the new group id
-
getDbOfficeId
Gets the db office id.- Returns:
- the db office id
-
setDbOfficeId
Sets the db office id.- Parameters:
dbOfficeId- the new db office id
-
getCategoryRef
Gets the category ref.- Returns:
- the category ref
-
setCategoryRef
Sets the category ref.- Parameters:
categoryRef- the new category ref
-
getAssignedTimeSeries
Gets the assigned timeseries by reference, this is not a copy so be careful.- Returns:
- the assigned timeseries
-
getAssignedTimeSeriesSorted
Gets a list containing the assigned timeseries sorted by assigned_timeseries.attribute.- Returns:
- the assigned timeseries
-
setAssignedTimeSeries
Sets the assigned timeseries.- Parameters:
newSeries- the new assigned timeseries
-
addAssignedTimeSeries
-
addAssignedTimeSeriesToEnd
-
addAssignedTimeSeriesToEnd
-
toXmlString
-
getCategoryId
Gets the category id from the containing category.- Returns:
- the category id
-
removeTimeSeries
-
containsTimeSeriesRef
-
toString
Returns a String concatenation of the category id and group id separated by a "-". -
moveUp
-
moveDown
-