Package hec.model
Class StreamSegment
java.lang.Object
hec.model.StreamSegment
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,StreamReferenceHolder,Serializable
Simple container to identify a segment on a stream element
either a station or a coordinate may be used to identify the ends of the segment
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubledoubleintintdoubledouble -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetStream(StreamElement elem) voidsetStreamIndex(int idx) voidsetStreamName(String name) toString()
-
Field Details
-
streamIndex
public int streamIndex -
upstreamStation
public double upstreamStation -
downstreamStation
public double downstreamStation -
upstreamCoord
public double upstreamCoord -
downstreamCoord
public double downstreamCoord -
streamName
-
stream
-
numberOfSegments
public int numberOfSegments
-
-
Constructor Details
-
StreamSegment
public StreamSegment()Constructor for the StreamSegment object -
StreamSegment
-
-
Method Details
-
setStream
-
equals
-
toString
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- 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- 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
-
getStreamIndex
public int getStreamIndex()- Specified by:
getStreamIndexin interfaceStreamReferenceHolder- Returns:
- See Also:
-
getStreamName
- Specified by:
getStreamNamein interfaceStreamReferenceHolder- Returns:
- See Also:
-
setStreamIndex
public void setStreamIndex(int idx) - Specified by:
setStreamIndexin interfaceStreamReferenceHolder- Parameters:
idx-- See Also:
-
setStreamName
- Specified by:
setStreamNamein interfaceStreamReferenceHolder- Parameters:
name-- See Also:
-