Package hec.model
Class StreamNode
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.StreamNode
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,Modifiable
Node connectivity objects for Stream Alignment
- See Also:
-
Field Summary
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object of the same class as this object.getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intgetIndex()Return the index of the NamedType as an int.doubledoublebooleanbooleanbooleanbooleanloadId()voidbooleanreadData(BufferedReader input) voidsaveAsGml(org.jdom.Element root, org.jdom.Namespace gmlNs) voidvoidsetDefaultStation(boolean b) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetIndex(int id) voidvoidsetLocation(WorldPt loc) voidsetStation(double st) voidvoidsetStreamCoord(double coord) toString()booleanwriteData(BufferedWriter out) Methods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setModified, setName, setValid, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
StreamNode
public StreamNode() -
StreamNode
-
StreamNode
-
-
Method Details
-
setAlignment
-
toString
-
getIndex
public int getIndex()Description copied from class:NamedTypeReturn the index of the NamedType as an int. -
setIndex
public void setIndex(int id) -
isDefaultStation
public boolean isDefaultStation() -
setDefaultStation
public void setDefaultStation(boolean b) -
getStream
-
setStream
-
getJunction
-
setJunction
-
setStation
public void setStation(double st) -
getStation
public double getStation() -
setStreamCoord
public void setStreamCoord(double coord) -
getStreamCoord
public double getStreamCoord() -
setLocation
-
getLocation
-
getLastLocation
-
readData
-
writeData
-
saveAsGml
public void saveAsGml(org.jdom.Element root, org.jdom.Namespace gmlNs) - Parameters:
root-
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classNamedType- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classNamedType- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-
loadId
public boolean loadId() -
locked
-
clone
Description copied from class:NamedTypeCreates a new object of the same class as this object.
It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No
constructor is called. -
isUpstreamNode
public boolean isUpstreamNode() -
isDownstreamNode
public boolean isDownstreamNode()
-