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 TypeFieldDescriptiondouble
double
int
int
double
double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.int
boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
setStream
(StreamElement elem) void
setStreamIndex
(int idx) void
setStreamName
(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:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in 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:
getStreamIndex
in interfaceStreamReferenceHolder
- Returns:
- See Also:
-
getStreamName
- Specified by:
getStreamName
in interfaceStreamReferenceHolder
- Returns:
- See Also:
-
setStreamIndex
public void setStreamIndex(int idx) - Specified by:
setStreamIndex
in interfaceStreamReferenceHolder
- Parameters:
idx
-- See Also:
-
setStreamName
- Specified by:
setStreamName
in interfaceStreamReferenceHolder
- Parameters:
name
-- See Also:
-