Package hec.data.watersupply
Class JDomWaterUserContractImpl
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.data.AbstractJDomDataObject
hec.data.watersupply.JDomWaterUserContractImpl
- All Implemented Interfaces:
IWaterUserContract
,XmlString
,AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Comparable
,Observer
,Modifiable
- 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
Fields inherited from interface hec.data.watersupply.IWaterUserContract
CONTRACT_DOCUMENTS, CONTRACT_WATER_USER, CONTRACTED_STORAGE, ELEMENT, FUTURE_USE_ALLOCATION, FUTURE_USE_PERCENT_ACTIVATED, INITIAL_USE_ALLOCATION, PROJECT_LOC, PUMP_IN_LOCATION, PUMP_OUT_BELOW_LOCATION, PUMP_OUT_LOCATION, TOTAL_ALLOC_PERCENT_ACTIVATED, WATER_USER_CONTRACT_REF, WS_CONTRACT_EFFECTIVE_DATE, WS_CONTRACT_EXPIRATION_DATE, WS_CONTRACT_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildElement
(org.jdom.Element element) Populates the element with data from this object.boolean
double
Gets the contracted storage.void
getContractedStorage
(ParamDouble paramDouble) Gets the ws contract effective date.Gets the ws contract expiration date.double
Gets the future use allocation.void
getFutureUseAllocation
(ParamDouble paramDouble) double
Gets the future use percent activated.void
getFutureUsePercentActivated
(ParamDouble paramDouble) double
Gets the initial use allocation.void
getInitialUseAllocation
(ParamDouble paramDouble) Returns the pump where water is pumped into the pool.Gets the pump where water is withdrawn from the pool.Returns the pump where water is pumped out below the pool as supply.double
Gets the total alloc percent activated.void
getTotalAllocPercentActivated
(ParamDouble paramDouble) int
hashCode()
void
setContractedStorage
(double contractedStorage) Sets the contracted storage.void
setContractedStorage
(ParamDouble paramDouble) void
setContractName
(String contractName) void
setContractType
(ILookupType wsContractType) void
setEffectiveDate
(Date wsContractEffectiveDate) Sets the ws contract effective date.void
setEffectiveDateObject
(Timestamp wsContractEffectiveDate) void
setExpirationDate
(Date wsContractExpirationDate) Sets the ws contract expiration date.void
setExpirationDateObject
(Timestamp wsContractExpirationDate) void
setFutureUseAllocation
(double futureUseAllocation) Sets the future use allocation.void
setFutureUseAllocation
(ParamDouble paramDouble) void
setFutureUsePercentActivated
(double futureUsePercentActivated) Sets the future use percent activated.void
setFutureUsePercentActivated
(ParamDouble paramDouble) void
setInitialUseAllocation
(double initialUseAllocation) Sets the initial use allocation.void
setInitialUseAllocation
(ParamDouble paramDouble) void
setJDomContractType
(JDomLookupTypeImpl wsContractType) void
setJDomWaterUserContractRef
(JDomWaterUserContractRef waterUserContractRef) void
setPump
(IWaterSupplyPump pump, PumpType pumpType) void
setPumpIn
(IWaterSupplyPump waterSupplyPump) Sets the pump where water is pumped into the pool.void
setPumpInLocation
(Location location) void
setPumpOut
(IWaterSupplyPump waterSupplyPump) Sets the location where water is withdrawn from the pool.void
setPumpOutBelow
(IWaterSupplyPump waterSupplyPump) Sets the pump where water is pumped out below the pool as supply.void
setPumpOutBelowLocation
(Location location) void
setPumpOutLocation
(Location location) void
setTotalAllocPercentActivated
(double totalAllocPercentActivated) Sets the total alloc percent activated.void
setTotalAllocPercentActivated
(ParamDouble paramDouble) void
setWaterUser
(IWaterUser contractWaterUser) void
setWaterUserContractRef
(IWaterUserContractRef waterUserContractRef) Methods inherited from class hec.data.AbstractJDomDataObject
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
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface rma.lang.Modifiable
isModified, setModified
Methods inherited from interface hec.data.XmlString
toXmlString
-
Constructor Details
-
JDomWaterUserContractImpl
public JDomWaterUserContractImpl() -
JDomWaterUserContractImpl
public JDomWaterUserContractImpl(org.jdom.Element element) -
JDomWaterUserContractImpl
-
-
Method Details
-
buildElement
public void buildElement(org.jdom.Element element) Description copied from class:AbstractJDomDataObject
Populates the element with data from this object.- Specified by:
buildElement
in classAbstractJDomDataObject
-
getContractedStorage
public double getContractedStorage()Description copied from interface:IWaterUserContract
Gets the contracted storage.- Specified by:
getContractedStorage
in interfaceIWaterUserContract
- Returns:
- the contracted storage
-
setContractedStorage
public void setContractedStorage(double contractedStorage) Description copied from interface:IWaterUserContract
Sets the contracted storage.- Specified by:
setContractedStorage
in interfaceIWaterUserContract
- Parameters:
contractedStorage
- the new contracted storage
-
getFutureUseAllocation
public double getFutureUseAllocation()Description copied from interface:IWaterUserContract
Gets the future use allocation.- Specified by:
getFutureUseAllocation
in interfaceIWaterUserContract
- Returns:
- the future use allocation
-
setFutureUseAllocation
public void setFutureUseAllocation(double futureUseAllocation) Description copied from interface:IWaterUserContract
Sets the future use allocation.- Specified by:
setFutureUseAllocation
in interfaceIWaterUserContract
- Parameters:
futureUseAllocation
- the new future use allocation
-
getFutureUsePercentActivated
public double getFutureUsePercentActivated()Description copied from interface:IWaterUserContract
Gets the future use percent activated.- Specified by:
getFutureUsePercentActivated
in interfaceIWaterUserContract
- Returns:
- the future use percent activated
-
setFutureUsePercentActivated
public void setFutureUsePercentActivated(double futureUsePercentActivated) Description copied from interface:IWaterUserContract
Sets the future use percent activated.- Specified by:
setFutureUsePercentActivated
in interfaceIWaterUserContract
- Parameters:
futureUsePercentActivated
- the new future use percent activated
-
getInitialUseAllocation
public double getInitialUseAllocation()Description copied from interface:IWaterUserContract
Gets the initial use allocation.- Specified by:
getInitialUseAllocation
in interfaceIWaterUserContract
- Returns:
- the initial use allocation
-
setInitialUseAllocation
public void setInitialUseAllocation(double initialUseAllocation) Description copied from interface:IWaterUserContract
Sets the initial use allocation.- Specified by:
setInitialUseAllocation
in interfaceIWaterUserContract
- Parameters:
initialUseAllocation
- the new initial use allocation
-
getTotalAllocPercentActivated
public double getTotalAllocPercentActivated()Description copied from interface:IWaterUserContract
Gets the total alloc percent activated.- Specified by:
getTotalAllocPercentActivated
in interfaceIWaterUserContract
- Returns:
- the total alloc percent activated
-
setTotalAllocPercentActivated
public void setTotalAllocPercentActivated(double totalAllocPercentActivated) Description copied from interface:IWaterUserContract
Sets the total alloc percent activated.- Specified by:
setTotalAllocPercentActivated
in interfaceIWaterUserContract
- Parameters:
totalAllocPercentActivated
- the new total alloc percent activated
-
getEffectiveDate
Description copied from interface:IWaterUserContract
Gets the ws contract effective date.- Specified by:
getEffectiveDate
in interfaceIWaterUserContract
- Returns:
- the ws contract effective date
-
setEffectiveDate
Description copied from interface:IWaterUserContract
Sets the ws contract effective date.- Specified by:
setEffectiveDate
in interfaceIWaterUserContract
- Parameters:
wsContractEffectiveDate
- the new ws contract effective date
-
getEffectiveDateObject
-
setEffectiveDateObject
-
getExpirationDate
Description copied from interface:IWaterUserContract
Gets the ws contract expiration date.- Specified by:
getExpirationDate
in interfaceIWaterUserContract
- Returns:
- the ws contract expiration date
-
setExpirationDate
Description copied from interface:IWaterUserContract
Sets the ws contract expiration date.- Specified by:
setExpirationDate
in interfaceIWaterUserContract
- Parameters:
wsContractExpirationDate
- the new ws contract expiration date
-
getExpirationDateObject
-
setExpirationDateObject
-
getWaterUserContractRef
- Specified by:
getWaterUserContractRef
in interfaceIWaterUserContract
-
setWaterUserContractRef
- Specified by:
setWaterUserContractRef
in interfaceIWaterUserContract
-
getJDomWaterUserContractRef
-
setJDomWaterUserContractRef
-
getContractType
- Specified by:
getContractType
in interfaceIWaterUserContract
-
setContractType
- Specified by:
setContractType
in interfaceIWaterUserContract
-
getJDomContractType
-
setJDomContractType
-
setContractName
- Specified by:
setContractName
in interfaceIWaterUserContract
-
getContractName
- Specified by:
getContractName
in interfaceIWaterUserContract
-
setWaterUser
- Specified by:
setWaterUser
in interfaceIWaterUserContract
-
getWaterUser
- Specified by:
getWaterUser
in interfaceIWaterUserContract
-
getContractedStorage
- Specified by:
getContractedStorage
in interfaceIWaterUserContract
-
setContractedStorage
- Specified by:
setContractedStorage
in interfaceIWaterUserContract
-
getFutureUseAllocation
- Specified by:
getFutureUseAllocation
in interfaceIWaterUserContract
-
setFutureUseAllocation
- Specified by:
setFutureUseAllocation
in interfaceIWaterUserContract
-
getFutureUsePercentActivated
- Specified by:
getFutureUsePercentActivated
in interfaceIWaterUserContract
-
setFutureUsePercentActivated
- Specified by:
setFutureUsePercentActivated
in interfaceIWaterUserContract
-
getInitialUseAllocation
- Specified by:
getInitialUseAllocation
in interfaceIWaterUserContract
-
setInitialUseAllocation
- Specified by:
setInitialUseAllocation
in interfaceIWaterUserContract
-
getTotalAllocPercentActivated
- Specified by:
getTotalAllocPercentActivated
in interfaceIWaterUserContract
-
setTotalAllocPercentActivated
- Specified by:
setTotalAllocPercentActivated
in interfaceIWaterUserContract
-
hashCode
public int hashCode() -
equals
-
getPumpOutBelowLocation
-
setPumpOutBelowLocation
-
getPumpOutLocation
-
setPumpOutLocation
-
getPumpInLocation
-
setPumpInLocation
-
setPumpOut
Description copied from interface:IWaterUserContract
Sets the location where water is withdrawn from the pool.- Specified by:
setPumpOut
in interfaceIWaterUserContract
-
getPumpOut
Description copied from interface:IWaterUserContract
Gets the pump where water is withdrawn from the pool.- Specified by:
getPumpOut
in interfaceIWaterUserContract
-
getPumpIn
Description copied from interface:IWaterUserContract
Returns the pump where water is pumped into the pool.- Specified by:
getPumpIn
in interfaceIWaterUserContract
-
setPumpIn
Description copied from interface:IWaterUserContract
Sets the pump where water is pumped into the pool.- Specified by:
setPumpIn
in interfaceIWaterUserContract
-
setPumpOutBelow
Description copied from interface:IWaterUserContract
Sets the pump where water is pumped out below the pool as supply.- Specified by:
setPumpOutBelow
in interfaceIWaterUserContract
-
getPumpOutBelow
Description copied from interface:IWaterUserContract
Returns the pump where water is pumped out below the pool as supply.- Specified by:
getPumpOutBelow
in interfaceIWaterUserContract
-
getPumpList
- Specified by:
getPumpList
in interfaceIWaterUserContract
-
setPump
- Specified by:
setPump
in interfaceIWaterUserContract
-
getPump
- Specified by:
getPump
in interfaceIWaterUserContract
-