Record Class AMPSomFunctions.SOMVariables

java.lang.Object
java.lang.Record
net.simplace.sim.components.experimental.som.AMPSomFunctions.SOMVariables
Enclosing class:
AMPSomFunctions

public static record AMPSomFunctions.SOMVariables(Double[] C12Pom, Double[] C14Pom, Double[] NPom, Double[] C12Dom, Double[] C14Dom, Double[] NDom, Double[] C12Microbes, Double[] C14Microbes, Double[] NMicrobes, Double[] C12Necromass, Double[] C14Necromass, Double[] NNecromass, Double[] C12MaomDom, Double[] C14MaomDom, Double[] NMaomDom, Double[] C12MaomNecromass, Double[] C14MaomNecromass, Double[] NMaomNecromass, Double[] C12Co2, Double[] C14Co2, Double[] NMin, Double[] Surf) extends Record
Record to store state and rate vector in a "human readable" form
  • Constructor Details

    • SOMVariables

      public SOMVariables(Double[] C12Pom, Double[] C14Pom, Double[] NPom, Double[] C12Dom, Double[] C14Dom, Double[] NDom, Double[] C12Microbes, Double[] C14Microbes, Double[] NMicrobes, Double[] C12Necromass, Double[] C14Necromass, Double[] NNecromass, Double[] C12MaomDom, Double[] C14MaomDom, Double[] NMaomDom, Double[] C12MaomNecromass, Double[] C14MaomNecromass, Double[] NMaomNecromass, Double[] C12Co2, Double[] C14Co2, Double[] NMin, Double[] Surf)
      Creates an instance of a SOMVariables record class.
      Parameters:
      C12Pom - the value for the C12Pom record component
      C14Pom - the value for the C14Pom record component
      NPom - the value for the NPom record component
      C12Dom - the value for the C12Dom record component
      C14Dom - the value for the C14Dom record component
      NDom - the value for the NDom record component
      C12Microbes - the value for the C12Microbes record component
      C14Microbes - the value for the C14Microbes record component
      NMicrobes - the value for the NMicrobes record component
      C12Necromass - the value for the C12Necromass record component
      C14Necromass - the value for the C14Necromass record component
      NNecromass - the value for the NNecromass record component
      C12MaomDom - the value for the C12MaomDom record component
      C14MaomDom - the value for the C14MaomDom record component
      NMaomDom - the value for the NMaomDom record component
      C12MaomNecromass - the value for the C12MaomNecromass record component
      C14MaomNecromass - the value for the C14MaomNecromass record component
      NMaomNecromass - the value for the NMaomNecromass record component
      C12Co2 - the value for the C12Co2 record component
      C14Co2 - the value for the C14Co2 record component
      NMin - the value for the NMin record component
      Surf - the value for the Surf record component
  • Method Details

    • fromArray

      public static AMPSomFunctions.SOMVariables fromArray(Double[] arr)
      Creates the record from an array
      Parameters:
      arr - Array with values
      n - size of the record's arrays
      Returns:
      the record
    • toArray

      public Double[] toArray()
      Puts all record values into a single array
      Returns:
      array with all values
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • C12Pom

      public Double[] C12Pom()
      Returns the value of the C12Pom record component.
      Returns:
      the value of the C12Pom record component
    • C14Pom

      public Double[] C14Pom()
      Returns the value of the C14Pom record component.
      Returns:
      the value of the C14Pom record component
    • NPom

      public Double[] NPom()
      Returns the value of the NPom record component.
      Returns:
      the value of the NPom record component
    • C12Dom

      public Double[] C12Dom()
      Returns the value of the C12Dom record component.
      Returns:
      the value of the C12Dom record component
    • C14Dom

      public Double[] C14Dom()
      Returns the value of the C14Dom record component.
      Returns:
      the value of the C14Dom record component
    • NDom

      public Double[] NDom()
      Returns the value of the NDom record component.
      Returns:
      the value of the NDom record component
    • C12Microbes

      public Double[] C12Microbes()
      Returns the value of the C12Microbes record component.
      Returns:
      the value of the C12Microbes record component
    • C14Microbes

      public Double[] C14Microbes()
      Returns the value of the C14Microbes record component.
      Returns:
      the value of the C14Microbes record component
    • NMicrobes

      public Double[] NMicrobes()
      Returns the value of the NMicrobes record component.
      Returns:
      the value of the NMicrobes record component
    • C12Necromass

      public Double[] C12Necromass()
      Returns the value of the C12Necromass record component.
      Returns:
      the value of the C12Necromass record component
    • C14Necromass

      public Double[] C14Necromass()
      Returns the value of the C14Necromass record component.
      Returns:
      the value of the C14Necromass record component
    • NNecromass

      public Double[] NNecromass()
      Returns the value of the NNecromass record component.
      Returns:
      the value of the NNecromass record component
    • C12MaomDom

      public Double[] C12MaomDom()
      Returns the value of the C12MaomDom record component.
      Returns:
      the value of the C12MaomDom record component
    • C14MaomDom

      public Double[] C14MaomDom()
      Returns the value of the C14MaomDom record component.
      Returns:
      the value of the C14MaomDom record component
    • NMaomDom

      public Double[] NMaomDom()
      Returns the value of the NMaomDom record component.
      Returns:
      the value of the NMaomDom record component
    • C12MaomNecromass

      public Double[] C12MaomNecromass()
      Returns the value of the C12MaomNecromass record component.
      Returns:
      the value of the C12MaomNecromass record component
    • C14MaomNecromass

      public Double[] C14MaomNecromass()
      Returns the value of the C14MaomNecromass record component.
      Returns:
      the value of the C14MaomNecromass record component
    • NMaomNecromass

      public Double[] NMaomNecromass()
      Returns the value of the NMaomNecromass record component.
      Returns:
      the value of the NMaomNecromass record component
    • C12Co2

      public Double[] C12Co2()
      Returns the value of the C12Co2 record component.
      Returns:
      the value of the C12Co2 record component
    • C14Co2

      public Double[] C14Co2()
      Returns the value of the C14Co2 record component.
      Returns:
      the value of the C14Co2 record component
    • NMin

      public Double[] NMin()
      Returns the value of the NMin record component.
      Returns:
      the value of the NMin record component
    • Surf

      public Double[] Surf()
      Returns the value of the Surf record component.
      Returns:
      the value of the Surf record component