Package hec.rss.model

Class ReservoirOutletElement

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, TSLocation, PlotVariableConstants, RssModelVariableConstants, RssReturnStatusConstants, RssTSLocation, hec.watershed.res.model.PlottableObject, Serializable, Cloneable, Comparable, Observer, rma.lang.Modifiable
Direct Known Subclasses:
DivertedOutletElement, ReservoirDamElement

public class ReservoirOutletElement extends Element
Element that connects a reservoir storage element to a downstream junction. Base class for Dam and Diverted outlets
See Also:
  • Constructor Details

    • ReservoirOutletElement

      public ReservoirOutletElement()
      Constructor for the ReservoirOutletElement object
    • ReservoirOutletElement

      public ReservoirOutletElement(RssSystem sys, int idx)
    • ReservoirOutletElement

      public ReservoirOutletElement(RssSystem sys, int idx, ReservoirElement p)
  • Method Details

    • getPowerPlants

      public PowerPlant[] getPowerPlants()
      Returns a list of power plants attached to this reservoir element. The list is guaranteed to be non null and of size 0 if there are no power plants on this reservoir.
      Returns:
      an array of PowerPlant objects.
    • getPulseFlow

      public double getPulseFlow()
      Base flow value for computing pulse routing.
      Returns:
    • getPulseFlow

      public void getPulseFlow(hec.data.ParamDouble pd)
    • setpulseFlow

      public void setpulseFlow(double pulseFlow)
    • setPulseFlow

      public void setPulseFlow(hec.data.ParamDouble pd)
    • setUseDefaultPulseFlow

      public void setUseDefaultPulseFlow(boolean tf)
      Set true to use the RssSystem default pulse flow. Otherwise set false to use the pulse flow value specified for this element
      Parameters:
      tf -
    • getUseDefaultPulseFlow

      public boolean getUseDefaultPulseFlow()
      Returns true if the RssSystem default pulse flow is to be used for the Pulse Routing compuation. Returns false to use the pulse flow value specified for this element
      Returns:
      true if the RssSystem default pulse flow is to be used for the Pulse Routing compuation. false to use the pulse flow value specified for this element
    • getRuleConnectivityRefs

      public List getRuleConnectivityRefs()
      Returns a List of RuleConnectivityRef objects identifying all rule references to other objects in the network.
      Overrides:
      getRuleConnectivityRefs in class Element
      Returns:
      ArrayList RuleConnectivityRef objects
    • 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 Element
      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 Element
      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