Package hec.lang

Class DoubleArray2dContainer

java.lang.Object
hec.lang.Array2dContainer
hec.lang.DoubleArray2dContainer
All Implemented Interfaces:
FieldAccessor, Serializable

public class DoubleArray2dContainer extends Array2dContainer implements Serializable, FieldAccessor
See Also:
  • Field Details

    • table

      protected double[][] table
  • Constructor Details

    • DoubleArray2dContainer

      public DoubleArray2dContainer(int cols, int rows)
  • Method Details

    • copyInto

      public void copyInto(DoubleArray2dContainer cont)
    • getCoordinate

      public boolean getCoordinate(int rowIndex, double[] rowArray)
    • getCoordinate

      public double getCoordinate(int rowIndex, int colIndex)
    • 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 Array2dContainer
      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 Array2dContainer
      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