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, YYYYFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENTFields 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 TypeMethodDescriptionvoidbuildElement(org.jdom.Element element) Populates the element with data from this object.booleandoubleGets the accounting flow in SI Parameter units.voidgetAccountingFlow(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.inthashCode()booleanisValid()Check if the object is valid for compute.voidsetAccountingFlow(double accountingFlow) Sets the accounting flow in SI Parameter units.voidsetAccountingFlow(ParamDouble paramDouble) Sets the accounting flow.voidsetAccountingRemarks(String accountingRemarks) Sets the accounting remarks.voidsetPhysicalTransferType(ILookupType physicalTransferType) Sets the physical transfer type.voidvoidsetTransferStartDatetime(Date transferStartDatetime) Sets the transfer start datetime.voidvoidsetWaterUserContractRef(IWaterUserContractRef wusrContractAcctContr) Methods inherited from class hec.data.AbstractJDomDataObject
buildElementOrRemove, camelCaseToLowerUnderbar, getDefaultElementName, getXmlDate, getXmlValue, parseDouble, parseFormattedDouble, parseInt, setXmlDate, setXmlValue, toXmlStringMethods 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, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:IWaterSupplyPumpAccountingGets the accounting remarks.- Specified by:
getAccountingRemarksin interfaceIWaterSupplyPumpAccounting- Returns:
- the accounting remarks
-
getPhysicalTransferType
Description copied from interface:IWaterSupplyPumpAccountingGets the physical transfer type.- Specified by:
getPhysicalTransferTypein interfaceIWaterSupplyPumpAccounting- Returns:
- the physical transfer type
-
getTransferStartDatetime
Description copied from interface:IWaterSupplyPumpAccountingGets the transfer start datetime.- Specified by:
getTransferStartDatetimein interfaceIWaterSupplyPumpAccounting- Returns:
- the transfer start datetime
-
getWaterUserContractRef
Description copied from interface:IWaterSupplyPumpAccountingGets a reference to the water user contract.- Specified by:
getWaterUserContractRefin interfaceIWaterSupplyPumpAccounting- Returns:
- the water user contract account contract
-
setAccountingRemarks
Description copied from interface:IWaterSupplyPumpAccountingSets the accounting remarks.- Specified by:
setAccountingRemarksin interfaceIWaterSupplyPumpAccounting- Parameters:
accountingRemarks- the new accounting remarks
-
setPhysicalTransferType
Description copied from interface:IWaterSupplyPumpAccountingSets the physical transfer type.- Specified by:
setPhysicalTransferTypein interfaceIWaterSupplyPumpAccounting- Parameters:
physicalTransferType- the new physical transfer type
-
setTransferStartDatetime
Description copied from interface:IWaterSupplyPumpAccountingSets the transfer start datetime.- Specified by:
setTransferStartDatetimein interfaceIWaterSupplyPumpAccounting- Parameters:
transferStartDatetime- the new transfer start datetime
-
setWaterUserContractRef
-
buildElement
public void buildElement(org.jdom.Element element) Description copied from class:AbstractJDomDataObjectPopulates the element with data from this object.- Specified by:
buildElementin classAbstractJDomDataObject
-
getPumpLocationRef
Description copied from interface:IWaterSupplyPumpAccountingGets the water user contract pump location associated with this accounting.- Specified by:
getPumpLocationRefin interfaceIWaterSupplyPumpAccounting- Returns:
-
setPumpLocationRef
-
getAccountingFlow
Description copied from interface:IWaterSupplyPumpAccountingGets the accounting flow.- Specified by:
getAccountingFlowin interfaceIWaterSupplyPumpAccounting
-
setAccountingFlow
Description copied from interface:IWaterSupplyPumpAccountingSets the accounting flow.- Specified by:
setAccountingFlowin interfaceIWaterSupplyPumpAccounting- Parameters:
paramDouble- the new accounting flow
-
getAccountingFlow
public double getAccountingFlow()Description copied from interface:IWaterSupplyPumpAccountingGets the accounting flow in SI Parameter units.- Specified by:
getAccountingFlowin interfaceIWaterSupplyPumpAccounting- Returns:
-
getAccountingFlowUnits
Description copied from interface:IWaterSupplyPumpAccountingReturns the SI parameter units for accounting flow.- Specified by:
getAccountingFlowUnitsin interfaceIWaterSupplyPumpAccounting- Returns:
-
setAccountingFlow
public void setAccountingFlow(double accountingFlow) Description copied from interface:IWaterSupplyPumpAccountingSets the accounting flow in SI Parameter units.- Specified by:
setAccountingFlowin interfaceIWaterSupplyPumpAccounting
-
setUndefined
public void setUndefined()- Specified by:
setUndefinedin interfaceIWaterSupplyPumpAccounting
-
isValid
public boolean isValid()Description copied from class:NamedTypeCheck if the object is valid for compute. Override this method where needed- Specified by:
isValidin interfaceIWaterSupplyPumpAccounting- Overrides:
isValidin classNamedType
-