Package hec.data.embankment
Class JDomEmbankmentImpl
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.data.AbstractJDomDataObject
hec.data.embankment.JDomEmbankmentImpl
- All Implemented Interfaces:
IEmbankment,ILocationAssociation,ILocationChild,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.embankment.IEmbankment
ELEMENT, ELEMENT_DOWNSTREAM_PROT_TYPE, ELEMENT_DOWNSTREAM_SIDESLOPE, ELEMENT_EMBANK_LOC, ELEMENT_EMBANK_PROJECT_LOC, ELEMENT_HEIGHT_MAX, ELEMENT_STRUCTURE_LENGTH, ELEMENT_STRUCTURE_TYPE, ELEMENT_TOP_WIDTH, ELEMENT_UPSTREAM_PROT_TYPE, ELEMENT_UPSTREAM_SIDESLOPE -
Constructor Summary
ConstructorsConstructorDescriptionJDomEmbankmentImpl(IEmbankment iembankment) JDomEmbankmentImpl(LocationTemplate projectLocationRef, Location embankmentLocation, ILookupType structureType) JDomEmbankmentImpl(org.jdom.Element element) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildElement(org.jdom.Element element) Populates the element with data from this object.Gets the downstream prot type.doubleGets the downstream sideslope.voidgetDownstreamSideslope(ParamDouble paramDouble) doubleGets the height max.voidgetHeightMax(ParamDouble paramDouble) doubleGets the structure length.voidgetStructureLength(ParamDouble paramDouble) Gets the structure type.doubleGets the top width.voidgetTopWidth(ParamDouble paramDouble) Gets the upstream prot type.doubleGets the upstream sideslope.voidgetUpstreamSideslope(ParamDouble paramDouble) voidsetDownstreamProtType(ILookupType downstreamProtectionType) Sets the downstream prot type.voidsetDownstreamSideslope(double downstreamSideslope) Sets the downstream sideslope.voidsetDownstreamSideslope(ParamDouble paramDouble) voidsetHeightMax(double heightMax) Sets the height max.voidsetHeightMax(ParamDouble paramDouble) voidsetLengthUnits(String units) voidsetLocation(Location location) voidsetParentLocationRef(LocationTemplate projectLoc) voidsetStructureLength(double structureLength) Sets the structure length.voidsetStructureLength(ParamDouble paramDouble) voidsetStructureType(ILookupType structureType) Sets the structure type.voidsetTopWidth(double topWidth) Sets the top width.voidsetTopWidth(ParamDouble paramDouble) voidsetUpstreamProtType(ILookupType upstreamProtType) Sets the upstream prot type.voidsetUpstreamSideslope(double upstreamSideslope) Sets the upstream sideslope.voidsetUpstreamSideslope(ParamDouble paramDouble) toString()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
-
JDomEmbankmentImpl
public JDomEmbankmentImpl() -
JDomEmbankmentImpl
public JDomEmbankmentImpl(org.jdom.Element element) -
JDomEmbankmentImpl
public JDomEmbankmentImpl(LocationTemplate projectLocationRef, Location embankmentLocation, ILookupType structureType) -
JDomEmbankmentImpl
-
-
Method Details
-
buildElement
public void buildElement(org.jdom.Element element) Description copied from class:AbstractJDomDataObjectPopulates the element with data from this object.- Specified by:
buildElementin classAbstractJDomDataObject
-
getParentLocationRef
- Specified by:
getParentLocationRefin interfaceILocationChild
-
setParentLocationRef
- Specified by:
setParentLocationRefin interfaceILocationChild
-
getLocation
- Specified by:
getLocationin interfaceILocationAssociation
-
setLocation
- Specified by:
setLocationin interfaceILocationAssociation
-
getStructureType
Description copied from interface:IEmbankmentGets the structure type.- Specified by:
getStructureTypein interfaceIEmbankment- Returns:
- the structure type
-
getLengthUnits
- Specified by:
getLengthUnitsin interfaceIEmbankment
-
setLengthUnits
-
getHeightMax
public double getHeightMax()Description copied from interface:IEmbankmentGets the height max.- Specified by:
getHeightMaxin interfaceIEmbankment- Returns:
- the height max
-
setHeightMax
public void setHeightMax(double heightMax) Description copied from interface:IEmbankmentSets the height max.- Specified by:
setHeightMaxin interfaceIEmbankment- Parameters:
heightMax- the new height max
-
getStructureLength
public double getStructureLength()Description copied from interface:IEmbankmentGets the structure length.- Specified by:
getStructureLengthin interfaceIEmbankment- Returns:
- the structure length
-
getTopWidth
public double getTopWidth()Description copied from interface:IEmbankmentGets the top width.- Specified by:
getTopWidthin interfaceIEmbankment- Returns:
- the top width
-
getUpstreamProtType
Description copied from interface:IEmbankmentGets the upstream prot type.- Specified by:
getUpstreamProtTypein interfaceIEmbankment- Returns:
- the upstream prot type
-
getUpstreamSideslope
public double getUpstreamSideslope()Description copied from interface:IEmbankmentGets the upstream sideslope.- Specified by:
getUpstreamSideslopein interfaceIEmbankment- Returns:
- the upstream sideslope
-
setDownstreamProtType
Description copied from interface:IEmbankmentSets the downstream prot type.- Specified by:
setDownstreamProtTypein interfaceIEmbankment- Parameters:
downstreamProtectionType- the new downstream prot type
-
setDownstreamSideslope
public void setDownstreamSideslope(double downstreamSideslope) Description copied from interface:IEmbankmentSets the downstream sideslope.- Specified by:
setDownstreamSideslopein interfaceIEmbankment- Parameters:
downstreamSideslope- the new downstream sideslope
-
setStructureLength
public void setStructureLength(double structureLength) Description copied from interface:IEmbankmentSets the structure length.- Specified by:
setStructureLengthin interfaceIEmbankment- Parameters:
structureLength- the new structure length
-
setStructureType
Description copied from interface:IEmbankmentSets the structure type.- Specified by:
setStructureTypein interfaceIEmbankment- Parameters:
structureType- the new structure type
-
setTopWidth
public void setTopWidth(double topWidth) Description copied from interface:IEmbankmentSets the top width.- Specified by:
setTopWidthin interfaceIEmbankment- Parameters:
topWidth- the new top width
-
setUpstreamProtType
Description copied from interface:IEmbankmentSets the upstream prot type.- Specified by:
setUpstreamProtTypein interfaceIEmbankment- Parameters:
upstreamProtType- the new upstream prot type
-
setUpstreamSideslope
public void setUpstreamSideslope(double upstreamSideslope) Description copied from interface:IEmbankmentSets the upstream sideslope.- Specified by:
setUpstreamSideslopein interfaceIEmbankment- Parameters:
upstreamSideslope- the new upstream sideslope
-
getDownstreamProtType
Description copied from interface:IEmbankmentGets the downstream prot type.- Specified by:
getDownstreamProtTypein interfaceIEmbankment- Returns:
- the downstream prot type
-
getDownstreamSideslope
public double getDownstreamSideslope()Description copied from interface:IEmbankmentGets the downstream sideslope.- Specified by:
getDownstreamSideslopein interfaceIEmbankment- Returns:
- the downstream sideslope
-
toString
-
getDownstreamSideslope
- Specified by:
getDownstreamSideslopein interfaceIEmbankment
-
setDownstreamSideslope
- Specified by:
setDownstreamSideslopein interfaceIEmbankment
-
getHeightMax
- Specified by:
getHeightMaxin interfaceIEmbankment
-
setHeightMax
- Specified by:
setHeightMaxin interfaceIEmbankment
-
getStructureLength
- Specified by:
getStructureLengthin interfaceIEmbankment
-
setStructureLength
- Specified by:
setStructureLengthin interfaceIEmbankment
-
getTopWidth
- Specified by:
getTopWidthin interfaceIEmbankment
-
setTopWidth
- Specified by:
setTopWidthin interfaceIEmbankment
-
getUpstreamSideslope
- Specified by:
getUpstreamSideslopein interfaceIEmbankment
-
setUpstreamSideslope
- Specified by:
setUpstreamSideslopein interfaceIEmbankment
-