Package hec.model
Class StreamJunction
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.StreamJunction
- All Implemented Interfaces:
hec.io.AsciiSerializable,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 TypeMethodDescriptionvoidbooleancontains(StreamElement reach) getFieldObject(Field fld) intgetIndex()Return the index of the NamedType as an int.intgetNodeOnStream(StreamElement elem) get a List of outflow nodes held by this junctionintintbooleanloadId()voidbooleanreadData(BufferedReader input) voidvoidvoidbooleansetFieldObject(Field fld, Object fobj) voidsetIndex(int id) voidset location of connected reach endpointsbooleanwriteData(BufferedWriter out) Methods inherited from class hec.lang.NamedType
addModifiableListener, clone, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setModified, setName, setValid, toString, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
StreamJunction
public StreamJunction() -
StreamJunction
-
-
Method Details
-
getOutflowingStreamSegments
-
getOutflowingStreams
-
getInflowingStreams
-
setAlignment
-
getIndex
public int getIndex()Description copied from class:NamedTypeReturn the index of the NamedType as an int. -
setIndex
public void setIndex(int id) -
contains
-
getNodeVector
-
getOutflowingNodes
get a List of outflow nodes held by this junction- Returns:
- a List of outflow StreamNodes
-
addNode
-
removeNode
-
removeAllNodes
public void removeAllNodes() -
readData
-
writeData
-
getLocation
-
getNodeOnStream
-
updateLocation
public void updateLocation()set location of connected reach endpoints -
getFieldObject
- Specified by:
getFieldObjectin interfacehec.io.AsciiSerializable- Overrides:
getFieldObjectin classNamedType
-
setFieldObject
- Specified by:
setFieldObjectin interfacehec.io.AsciiSerializable- Overrides:
setFieldObjectin classNamedType
-
loadId
public boolean loadId() -
locked
-