Package hec.data.project
Class JDomProjectImpl
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.data.AbstractJDomDataObject
hec.data.project.JDomProjectImpl
- All Implemented Interfaces:
ILocationAssociation,IProject,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, 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.project.IProject
AUTHORIZING_LAW, BANK_FULL_CAPACITY_DESCRIPTION, COST_YEAR, DOWNSTREAM_URBAN_DESCRIPTION, ELEMENT, FEDERAL_COST, FEDERAL_OM_COST, HYDROPOWER_DESCRIPTION, NEAR_GAGE_LOCATION, NONFEDERAL_COST, NONFEDERAL_OM_COST, PROJECT_LOCATION, PROJECT_OWNER, PUMP_BACK_LOCATION, REMARKS, SEDIMENTATION_DESCRIPTION, VERSION, VERSION_1_0, YIELD_TIME_FRAME_END, YIELD_TIME_FRAME_START -
Constructor Summary
ConstructorsConstructorDescriptionJDomProjectImpl(Location projectLocation) JDomProjectImpl(IProject iproject) JDomProjectImpl(org.jdom.Element rootElement) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildElement(org.jdom.Element element) Populates the element with data from this object.Returns the law authorizing this project.longReturns the date of the major cost of the project.Returns the date of the major cost of the project.doubleReturns the federal cost of this project.voidgetFederalCost(ParamDouble paramDouble) doubleReturns the federal operations and maintenance cost for this project.voidgetFederalOandMCost(ParamDouble paramDouble) Returns the location for this project.Returns by reference the location associated with the near gage for this project.doubleReturns the non federal cost of this project.voidgetNonFederalCost(ParamDouble paramDouble) doubleReturns the non federal operations and maintenance cost for this project.voidgetNonFederalOandMCost(ParamDouble paramDouble) Returns the concatenated base location id - sub location id for this project.Returns the office id that owns this project.Returns the assigned owner of this project.Returns the office id that owns this project.Returns by reference the location associated with water pumped back into ' this project, can be null.Returns the general remarks for this project.longlongvoidsetAuthorizingLaw(String authorizingLaw) Sets the law authorizing this project.voidsetBankFullCapacityDescription(String bankFullCapacityDescription) voidsetCostYear(long year) Sets the cost year of this project.voidsetCostYearObject(Timestamp time) voidsetDownstreamUrbanDescription(String downstreamUrbanDescription) voidsetFederalCost(double cost) Sets the federal cost for this project.voidvoidsetFederalCostUnit(String federalCostUnit) voidsetFederalOandMCost(double cost) Sets the federal operations and maintenance cost for this project.voidvoidsetFederalOandMCostUnit(String federalOandMCostUnit) voidsetHydropowerDescription(String hydropowerDescription) voidsetLocation(Location projectLocation) voidsetNearGageLocation(Location location) voidsetNonFederalCost(double cost) Sets the non federal cost of this project.voidvoidsetNonFederalCostUnit(String nonFederalCostUnit) voidsetNonFederalOandMCost(double cost) Sets the non federal operations and maintenance cost for this project.voidvoidsetNonFederalOandMCostUnit(String nonFederalOandMCostUnit) voidsetProjectOfficeId(String projectOfficeId) voidsetProjectOwner(String owner) Sets the assigned owner of this project.voidsetPumpbackLocation(Location location) voidsetRemarks(String remarks) Sets the general remarks for this project.voidsetSedimentationDescription(String sedimentationDescription) voidsetYieldTimeFrameEnd(long yieldTimeFrameEnd) voidvoidsetYieldTimeFrameStart(long yieldTimeFrameStart) voidtoString()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, 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, setChangedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface rma.lang.Modifiable
isModified, setModifiedMethods inherited from interface hec.data.XmlString
toXmlString
-
Constructor Details
-
JDomProjectImpl
-
JDomProjectImpl
public JDomProjectImpl() -
JDomProjectImpl
public JDomProjectImpl(org.jdom.Element rootElement) -
JDomProjectImpl
-
-
Method Details
-
toString
-
getLocation
Description copied from interface:IProjectReturns the location for this project. Can be modified by reference.- Specified by:
getLocationin interfaceILocationAssociation- Specified by:
getLocationin interfaceIProject
-
setLocation
- Specified by:
setLocationin interfaceILocationAssociation- Specified by:
setLocationin interfaceIProject
-
getProjectOfficeId
Description copied from interface:IProjectReturns the office id that owns this project.- Specified by:
getProjectOfficeIdin interfaceIProject
-
setProjectOfficeId
-
getFederalCostUnit
- Specified by:
getFederalCostUnitin interfaceIProject
-
setFederalCostUnit
-
getNonFederalCostUnit
- Specified by:
getNonFederalCostUnitin interfaceIProject
-
setNonFederalCostUnit
-
getFederalOandMCostUnit
- Specified by:
getFederalOandMCostUnitin interfaceIProject
-
setFederalOandMCostUnit
-
getNonFederalOandMCostUnit
- Specified by:
getNonFederalOandMCostUnitin interfaceIProject
-
setNonFederalOandMCostUnit
-
setBankFullCapacityDescription
- Specified by:
setBankFullCapacityDescriptionin interfaceIProject
-
setDownstreamUrbanDescription
- Specified by:
setDownstreamUrbanDescriptionin interfaceIProject
-
setHydropowerDescription
- Specified by:
setHydropowerDescriptionin interfaceIProject
-
setSedimentationDescription
- Specified by:
setSedimentationDescriptionin interfaceIProject
-
setYieldTimeFrameEnd
public void setYieldTimeFrameEnd(long yieldTimeFrameEnd) - Specified by:
setYieldTimeFrameEndin interfaceIProject
-
setYieldTimeFrameStart
public void setYieldTimeFrameStart(long yieldTimeFrameStart) - Specified by:
setYieldTimeFrameStartin interfaceIProject
-
getProjectTimeZone
Description copied from interface:IProjectReturns the office id that owns this project.- Specified by:
getProjectTimeZonein interfaceIProject
-
getProjectId
Description copied from interface:IProjectReturns the concatenated base location id - sub location id for this project.- Specified by:
getProjectIdin interfaceIProject
-
getAuthorizingLaw
Description copied from interface:IProjectReturns the law authorizing this project.- Specified by:
getAuthorizingLawin interfaceIProject
-
setAuthorizingLaw
Description copied from interface:IProjectSets the law authorizing this project.- Specified by:
setAuthorizingLawin interfaceIProject
-
getFederalCostObject
-
setFederalCostObject
-
getFederalCost
public double getFederalCost()Description copied from interface:IProjectReturns the federal cost of this project.- Specified by:
getFederalCostin interfaceIProject- Returns:
-
setFederalCost
public void setFederalCost(double cost) Description copied from interface:IProjectSets the federal cost for this project.- Specified by:
setFederalCostin interfaceIProject
-
getNonFederalCost
public double getNonFederalCost()Description copied from interface:IProjectReturns the non federal cost of this project.- Specified by:
getNonFederalCostin interfaceIProject- Returns:
-
setNonFederalCost
public void setNonFederalCost(double cost) Description copied from interface:IProjectSets the non federal cost of this project.- Specified by:
setNonFederalCostin interfaceIProject
-
getNonFederalCostObject
-
setNonFederalCostObject
-
getCostYear
public long getCostYear()Description copied from interface:IProjectReturns the date of the major cost of the project.- Specified by:
getCostYearin interfaceIProject- Returns:
- a java ms utc time for the year.
-
setCostYear
public void setCostYear(long year) Description copied from interface:IProjectSets the cost year of this project.- Specified by:
setCostYearin interfaceIProject- Parameters:
year- a java ms utc time for the year.
-
getCostYearObject
Description copied from interface:IProjectReturns the date of the major cost of the project. Used for database serialization- Specified by:
getCostYearObjectin interfaceIProject- Returns:
- timestamp for the year.
-
setCostYearObject
-
getFederalOandMCost
public double getFederalOandMCost()Description copied from interface:IProjectReturns the federal operations and maintenance cost for this project.- Specified by:
getFederalOandMCostin interfaceIProject- Returns:
-
setFederalOandMCost
public void setFederalOandMCost(double cost) Description copied from interface:IProjectSets the federal operations and maintenance cost for this project.- Specified by:
setFederalOandMCostin interfaceIProject
-
getFederalOandMCostObject
-
setFederalOandMCostObject
-
getNonFederalOandMCost
public double getNonFederalOandMCost()Description copied from interface:IProjectReturns the non federal operations and maintenance cost for this project.- Specified by:
getNonFederalOandMCostin interfaceIProject- Returns:
-
setNonFederalOandMCost
public void setNonFederalOandMCost(double cost) Description copied from interface:IProjectSets the non federal operations and maintenance cost for this project.- Specified by:
setNonFederalOandMCostin interfaceIProject
-
getNonFederalOandMCostObject
-
setNonFederalOandMCostObject
-
getRemarks
Description copied from interface:IProjectReturns the general remarks for this project.- Specified by:
getRemarksin interfaceIProject- Returns:
-
setRemarks
Description copied from interface:IProjectSets the general remarks for this project.- Specified by:
setRemarksin interfaceIProject
-
getProjectOwner
Description copied from interface:IProjectReturns the assigned owner of this project.- Specified by:
getProjectOwnerin interfaceIProject- Returns:
-
setProjectOwner
Description copied from interface:IProjectSets the assigned owner of this project.- Specified by:
setProjectOwnerin interfaceIProject
-
getPumpbackLocation
Description copied from interface:IProjectReturns by reference the location associated with water pumped back into ' this project, can be null.- Specified by:
getPumpbackLocationin interfaceIProject- Returns:
-
setPumpbackLocation
- Specified by:
setPumpbackLocationin interfaceIProject
-
getNearGageLocation
Description copied from interface:IProjectReturns by reference the location associated with the near gage for this project.- Specified by:
getNearGageLocationin interfaceIProject- Returns:
-
setNearGageLocation
- Specified by:
setNearGageLocationin interfaceIProject
-
getBankFullCapacityDescription
- Specified by:
getBankFullCapacityDescriptionin interfaceIProject
-
getDownstreamUrbanDescription
- Specified by:
getDownstreamUrbanDescriptionin interfaceIProject
-
getHydropowerDescription
- Specified by:
getHydropowerDescriptionin interfaceIProject
-
getSedimentationDescription
- Specified by:
getSedimentationDescriptionin interfaceIProject
-
getYieldTimeFrameEnd
public long getYieldTimeFrameEnd()- Specified by:
getYieldTimeFrameEndin interfaceIProject
-
getYieldTimeFrameStart
public long getYieldTimeFrameStart()- Specified by:
getYieldTimeFrameStartin interfaceIProject
-
getYieldTimeFrameEndTimestamp
- Specified by:
getYieldTimeFrameEndTimestampin interfaceIProject
-
setYieldTimeFrameEndTimestamp
-
getYieldTimeFrameStartTimestamp
- Specified by:
getYieldTimeFrameStartTimestampin interfaceIProject
-
setYieldTimeFrameStartTimestamp
-
buildElement
public void buildElement(org.jdom.Element element) Description copied from class:AbstractJDomDataObjectPopulates the element with data from this object.- Specified by:
buildElementin classAbstractJDomDataObject
-
getFederalCost
- Specified by:
getFederalCostin interfaceIProject
-
getNonFederalCost
- Specified by:
getNonFederalCostin interfaceIProject
-
getFederalOandMCost
- Specified by:
getFederalOandMCostin interfaceIProject
-
getNonFederalOandMCost
- Specified by:
getNonFederalOandMCostin interfaceIProject
-