Package hec.model
Class StreamSegment
java.lang.Object
hec.model.StreamSegment
- All Implemented Interfaces:
hec.io.AsciiSerializable,StreamReferenceHolder,Serializable
public class StreamSegment
extends Object
implements hec.io.AsciiSerializable, StreamReferenceHolder
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) intbooleansetFieldObject(Field fld, Object fobj) 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
- Specified by:
getFieldObjectin interfacehec.io.AsciiSerializable
-
setFieldObject
- Specified by:
setFieldObjectin interfacehec.io.AsciiSerializable
-
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:
-