Package hec.data.operations
Class OperationalProjectChanges<OC extends IPhysicalStructureOperationalChange<? extends IPhysicalStructureOperationalChangeRef>>
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.data.AbstractJDomDataObject
hec.data.operations.OperationalProjectChanges<OC>
- All Implemented Interfaces:
ILocationRef
,IProjectOperationalChanges<OC>
,AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Comparable
,Observer
,Modifiable
- Direct Known Subclasses:
JDomProjectGateChanges
,JDomProjectTurbineChanges
public abstract class OperationalProjectChanges<OC extends IPhysicalStructureOperationalChange<? extends IPhysicalStructureOperationalChangeRef>>
extends AbstractJDomDataObject
implements ILocationRef, IProjectOperationalChanges<OC>
- See Also:
-
Field Summary
Fields inherited from class hec.data.AbstractJDomDataObject
DD_MM_MYYYY, DD_MM_MYYYY_HHMM, DD_MM_MYYYY_HHMMZ, MM_MYYYY, UNIT, YYYY
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IProjectOperationalChanges<OC>
buildProjectOpsChanges
(LocationTemplate projectLocationRef) protected abstract OC
buildUndefOperationalChange
(LocationTemplate projectLocationRef, Date date) void
void
void
deleteOperationalChanges
(Set<Date> dateSet) Returns the ref location templategetOperationalChange
(Date changeDate) getOperationalChanges
(Date startTime, Date endTime) void
mergeOperationalChanges
(IProjectOperationalChanges<OC> projectOperationalChanges, boolean generateModifiedTimeWindow, boolean preserveModifiedData) void
mergeOperationalChanges
(NavigableMap<Date, OC> datedOpsChangeMap, boolean generateModifiedTimeWindow, boolean preserveModifiedData) void
setLocationRef
(LocationTemplate projectLocationRef) Sets the ref location template.void
setProjectLocationRef
(LocationTemplate projectLocationRef) int
size()
windowAndLimit
(Date startTime, Date endTime, boolean headFlag, int rowLimit, boolean pruneUndefined) Methods inherited from class hec.data.AbstractJDomDataObject
buildElement, buildElementOrRemove, camelCaseToLowerUnderbar, getDefaultElementName, getXmlDate, getXmlValue, parseDouble, parseFormattedDouble, parseInt, setXmlDate, setXmlValue, toXmlString
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, toString, update, useRecursiveModifiedTest
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface rma.lang.Modifiable
isModified, setModified
-
Constructor Details
-
OperationalProjectChanges
public OperationalProjectChanges() -
OperationalProjectChanges
-
-
Method Details
-
clearTimeWindowMap
public void clearTimeWindowMap()- Specified by:
clearTimeWindowMap
in interfaceIProjectOperationalChanges<OC extends IPhysicalStructureOperationalChange<? extends IPhysicalStructureOperationalChangeRef>>
-
getLocationRef
Description copied from interface:ILocationRef
Returns the ref location template- Specified by:
getLocationRef
in interfaceILocationRef
- Returns:
-
getOperationalChange
- Specified by:
getOperationalChange
in interfaceIProjectOperationalChanges<OC extends IPhysicalStructureOperationalChange<? extends IPhysicalStructureOperationalChangeRef>>
-
getOperationalChanges
- Specified by:
getOperationalChanges
in interfaceIProjectOperationalChanges<OC extends IPhysicalStructureOperationalChange<? extends IPhysicalStructureOperationalChangeRef>>
-
getOperationalChanges
-
getProjectLocationRef
- Specified by:
getProjectLocationRef
in interfaceIProjectOperationalChanges<OC extends IPhysicalStructureOperationalChange<? extends IPhysicalStructureOperationalChangeRef>>
-
getTimeWindowMap
- Specified by:
getTimeWindowMap
in interfaceIProjectOperationalChanges<OC extends IPhysicalStructureOperationalChange<? extends IPhysicalStructureOperationalChangeRef>>
-
mergeOperationalChanges
public void mergeOperationalChanges(IProjectOperationalChanges<OC> projectOperationalChanges, boolean generateModifiedTimeWindow, boolean preserveModifiedData) throws DataObjectException - Specified by:
mergeOperationalChanges
in interfaceIProjectOperationalChanges<OC extends IPhysicalStructureOperationalChange<? extends IPhysicalStructureOperationalChangeRef>>
- Throws:
DataObjectException
-
setLocationRef
Description copied from interface:ILocationRef
Sets the ref location template.- Specified by:
setLocationRef
in interfaceILocationRef
-
setProjectLocationRef
-
size
public int size()- Specified by:
size
in interfaceIProjectOperationalChanges<OC extends IPhysicalStructureOperationalChange<? extends IPhysicalStructureOperationalChangeRef>>
-
windowAndLimit
public IProjectOperationalChanges<OC> windowAndLimit(Date startTime, Date endTime, boolean headFlag, int rowLimit, boolean pruneUndefined) - Specified by:
windowAndLimit
in interfaceIProjectOperationalChanges<OC extends IPhysicalStructureOperationalChange<? extends IPhysicalStructureOperationalChangeRef>>
-
buildProjectOpsChanges
protected abstract IProjectOperationalChanges<OC> buildProjectOpsChanges(LocationTemplate projectLocationRef) -
deleteOperationalChanges
- Specified by:
deleteOperationalChanges
in interfaceIProjectOperationalChanges<OC extends IPhysicalStructureOperationalChange<? extends IPhysicalStructureOperationalChangeRef>>
-
clearUndefinedChanges
public void clearUndefinedChanges()- Specified by:
clearUndefinedChanges
in interfaceIProjectOperationalChanges<OC extends IPhysicalStructureOperationalChange<? extends IPhysicalStructureOperationalChangeRef>>
-
buildUndefOperationalChange
-