Package hec.model
Class StreamJunction
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.StreamJunction
- 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 TypeMethodDescriptionvoidbooleancontains(StreamElement reach) 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.intgetNodeOnStream(StreamElement elem) get a List of outflow nodes held by this junctionintintbooleanloadId()voidbooleanreadData(BufferedReader input) voidvoidvoidbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.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
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
-