Package hec.model

Class StreamNode

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable, Comparable, Observer, Modifiable

public class StreamNode extends NamedType implements AsciiSerializable, Serializable, Cloneable
Node connectivity objects for Stream Alignment
See Also:
  • Constructor Details

  • Method Details

    • setAlignment

      public void setAlignment(StreamAlignmentIfc a)
    • toString

      public String toString()
      Overrides:
      toString in class NamedType
    • getIndex

      public int getIndex()
      Description copied from class: NamedType
      Return the index of the NamedType as an int.
      Overrides:
      getIndex in class NamedType
    • setIndex

      public void setIndex(int id)
      Overrides:
      setIndex in class NamedType
    • isDefaultStation

      public boolean isDefaultStation()
    • setDefaultStation

      public void setDefaultStation(boolean b)
    • getStream

      public StreamElement getStream()
    • setStream

      public void setStream(StreamElement s)
    • getJunction

      public StreamJunction getJunction()
    • setJunction

      public void setJunction(StreamJunction j)
    • setStation

      public void setStation(double st)
    • getStation

      public double getStation()
    • setStreamCoord

      public void setStreamCoord(double coord)
    • getStreamCoord

      public double getStreamCoord()
    • setLocation

      public void setLocation(WorldPt loc)
    • getLocation

      public WorldPt getLocation()
    • getLastLocation

      public WorldPt getLastLocation()
    • readData

      public boolean readData(BufferedReader input)
    • writeData

      public boolean writeData(BufferedWriter out)
    • saveAsGml

      public void saveAsGml(org.jdom.Element root, org.jdom.Namespace gmlNs)
      Parameters:
      root -
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Overrides:
      getFieldObject in class NamedType
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Overrides:
      setFieldObject in class NamedType
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful
    • loadId

      public boolean loadId()
    • locked

      public void locked(LockEvent event)
    • clone

      public Object clone()
      Description copied from class: NamedType
      Creates a new object of the same class as this object.
      It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No
      constructor is called.
      Overrides:
      clone in class NamedType
    • isUpstreamNode

      public boolean isUpstreamNode()
    • isDownstreamNode

      public boolean isDownstreamNode()