Package hec.data.watersupply
Class JDomWaterSupplyPumpAccountingImpl
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.data.AbstractJDomDataObject
hec.data.watersupply.JDomWaterSupplyPumpAccountingImpl
- All Implemented Interfaces:
IWaterSupplyPumpAccounting
,XmlString
,AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Comparable
,Observer
,Modifiable
public class JDomWaterSupplyPumpAccountingImpl
extends AbstractJDomDataObject
implements IWaterSupplyPumpAccounting
- See Also:
-
Field Summary
FieldsFields 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.IWaterSupplyPumpAccounting
ACCOUNTING_FLOW, ACCOUNTING_REMARKS, PHYSICAL_XFER_TYPE, PUMP_LOCATION, WATER_USER_CONTRACT, XFER_START_DATETIME
-
Constructor Summary
ConstructorsConstructorDescriptionJDomWaterSupplyPumpAccountingImpl
(IWaterSupplyPumpAccounting contractAccounting) JDomWaterSupplyPumpAccountingImpl
(IWaterUserContractRef contractRef, LocationTemplate pumpLocRef, Date transferStartDateTime) JDomWaterSupplyPumpAccountingImpl
(org.jdom.Element element) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildElement
(org.jdom.Element element) Populates the element with data from this object.boolean
double
Gets the accounting flow in SI Parameter units.void
getAccountingFlow
(ParamDouble paramDouble) Gets the accounting flow.Returns the SI parameter units for accounting flow.Gets the accounting remarks.Gets the physical transfer type.Gets the water user contract pump location associated with this accounting.Gets the transfer start datetime.Gets a reference to the water user contract.int
hashCode()
boolean
isValid()
Check if the object is valid for compute.void
setAccountingFlow
(double accountingFlow) Sets the accounting flow in SI Parameter units.void
setAccountingFlow
(ParamDouble paramDouble) Sets the accounting flow.void
setAccountingRemarks
(String accountingRemarks) Sets the accounting remarks.void
setPhysicalTransferType
(ILookupType physicalTransferType) Sets the physical transfer type.void
void
setTransferStartDatetime
(Date transferStartDatetime) Sets the transfer start datetime.void
void
setWaterUserContractRef
(IWaterUserContractRef wusrContractAcctContr) 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, 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 hec.data.XmlString
toXmlString
-
Field Details
-
logger
-
-
Constructor Details
-
JDomWaterSupplyPumpAccountingImpl
public JDomWaterSupplyPumpAccountingImpl() -
JDomWaterSupplyPumpAccountingImpl
-
JDomWaterSupplyPumpAccountingImpl
public JDomWaterSupplyPumpAccountingImpl(org.jdom.Element element) -
JDomWaterSupplyPumpAccountingImpl
public JDomWaterSupplyPumpAccountingImpl(IWaterUserContractRef contractRef, LocationTemplate pumpLocRef, Date transferStartDateTime)
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getAccountingRemarks
Description copied from interface:IWaterSupplyPumpAccounting
Gets the accounting remarks.- Specified by:
getAccountingRemarks
in interfaceIWaterSupplyPumpAccounting
- Returns:
- the accounting remarks
-
getPhysicalTransferType
Description copied from interface:IWaterSupplyPumpAccounting
Gets the physical transfer type.- Specified by:
getPhysicalTransferType
in interfaceIWaterSupplyPumpAccounting
- Returns:
- the physical transfer type
-
getTransferStartDatetime
Description copied from interface:IWaterSupplyPumpAccounting
Gets the transfer start datetime.- Specified by:
getTransferStartDatetime
in interfaceIWaterSupplyPumpAccounting
- Returns:
- the transfer start datetime
-
getWaterUserContractRef
Description copied from interface:IWaterSupplyPumpAccounting
Gets a reference to the water user contract.- Specified by:
getWaterUserContractRef
in interfaceIWaterSupplyPumpAccounting
- Returns:
- the water user contract account contract
-
setAccountingRemarks
Description copied from interface:IWaterSupplyPumpAccounting
Sets the accounting remarks.- Specified by:
setAccountingRemarks
in interfaceIWaterSupplyPumpAccounting
- Parameters:
accountingRemarks
- the new accounting remarks
-
setPhysicalTransferType
Description copied from interface:IWaterSupplyPumpAccounting
Sets the physical transfer type.- Specified by:
setPhysicalTransferType
in interfaceIWaterSupplyPumpAccounting
- Parameters:
physicalTransferType
- the new physical transfer type
-
setTransferStartDatetime
Description copied from interface:IWaterSupplyPumpAccounting
Sets the transfer start datetime.- Specified by:
setTransferStartDatetime
in interfaceIWaterSupplyPumpAccounting
- Parameters:
transferStartDatetime
- the new transfer start datetime
-
setWaterUserContractRef
-
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
-
getPumpLocationRef
Description copied from interface:IWaterSupplyPumpAccounting
Gets the water user contract pump location associated with this accounting.- Specified by:
getPumpLocationRef
in interfaceIWaterSupplyPumpAccounting
- Returns:
-
setPumpLocationRef
-
getAccountingFlow
Description copied from interface:IWaterSupplyPumpAccounting
Gets the accounting flow.- Specified by:
getAccountingFlow
in interfaceIWaterSupplyPumpAccounting
-
setAccountingFlow
Description copied from interface:IWaterSupplyPumpAccounting
Sets the accounting flow.- Specified by:
setAccountingFlow
in interfaceIWaterSupplyPumpAccounting
- Parameters:
paramDouble
- the new accounting flow
-
getAccountingFlow
public double getAccountingFlow()Description copied from interface:IWaterSupplyPumpAccounting
Gets the accounting flow in SI Parameter units.- Specified by:
getAccountingFlow
in interfaceIWaterSupplyPumpAccounting
- Returns:
-
getAccountingFlowUnits
Description copied from interface:IWaterSupplyPumpAccounting
Returns the SI parameter units for accounting flow.- Specified by:
getAccountingFlowUnits
in interfaceIWaterSupplyPumpAccounting
- Returns:
-
setAccountingFlow
public void setAccountingFlow(double accountingFlow) Description copied from interface:IWaterSupplyPumpAccounting
Sets the accounting flow in SI Parameter units.- Specified by:
setAccountingFlow
in interfaceIWaterSupplyPumpAccounting
-
setUndefined
public void setUndefined()- Specified by:
setUndefined
in interfaceIWaterSupplyPumpAccounting
-
isValid
public boolean isValid()Description copied from class:NamedType
Check if the object is valid for compute. Override this method where needed- Specified by:
isValid
in interfaceIWaterSupplyPumpAccounting
- Overrides:
isValid
in classNamedType
-