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 Summary
ConstructorDescriptionSOMVariables
(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 aSOMVariables
record class. -
Method Summary
Modifier and TypeMethodDescriptionDouble[]
C12Co2()
Returns the value of theC12Co2
record component.Double[]
C12Dom()
Returns the value of theC12Dom
record component.Double[]
Returns the value of theC12MaomDom
record component.Double[]
Returns the value of theC12MaomNecromass
record component.Double[]
Returns the value of theC12Microbes
record component.Double[]
Returns the value of theC12Necromass
record component.Double[]
C12Pom()
Returns the value of theC12Pom
record component.Double[]
C14Co2()
Returns the value of theC14Co2
record component.Double[]
C14Dom()
Returns the value of theC14Dom
record component.Double[]
Returns the value of theC14MaomDom
record component.Double[]
Returns the value of theC14MaomNecromass
record component.Double[]
Returns the value of theC14Microbes
record component.Double[]
Returns the value of theC14Necromass
record component.Double[]
C14Pom()
Returns the value of theC14Pom
record component.final boolean
Indicates whether some other object is "equal to" this one.static AMPSomFunctions.SOMVariables
Creates the record from an arrayfinal int
hashCode()
Returns a hash code value for this object.Double[]
NDom()
Returns the value of theNDom
record component.Double[]
NMaomDom()
Returns the value of theNMaomDom
record component.Double[]
Returns the value of theNMaomNecromass
record component.Double[]
Returns the value of theNMicrobes
record component.Double[]
NMin()
Returns the value of theNMin
record component.Double[]
Returns the value of theNNecromass
record component.Double[]
NPom()
Returns the value of theNPom
record component.Double[]
Surf()
Returns the value of theSurf
record component.Double[]
toArray()
Puts all record values into a single arrayfinal String
toString()
Returns a string representation of this record class.
-
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 aSOMVariables
record class.- Parameters:
C12Pom
- the value for theC12Pom
record componentC14Pom
- the value for theC14Pom
record componentNPom
- the value for theNPom
record componentC12Dom
- the value for theC12Dom
record componentC14Dom
- the value for theC14Dom
record componentNDom
- the value for theNDom
record componentC12Microbes
- the value for theC12Microbes
record componentC14Microbes
- the value for theC14Microbes
record componentNMicrobes
- the value for theNMicrobes
record componentC12Necromass
- the value for theC12Necromass
record componentC14Necromass
- the value for theC14Necromass
record componentNNecromass
- the value for theNNecromass
record componentC12MaomDom
- the value for theC12MaomDom
record componentC14MaomDom
- the value for theC14MaomDom
record componentNMaomDom
- the value for theNMaomDom
record componentC12MaomNecromass
- the value for theC12MaomNecromass
record componentC14MaomNecromass
- the value for theC14MaomNecromass
record componentNMaomNecromass
- the value for theNMaomNecromass
record componentC12Co2
- the value for theC12Co2
record componentC14Co2
- the value for theC14Co2
record componentNMin
- the value for theNMin
record componentSurf
- the value for theSurf
record component
-
-
Method Details
-
fromArray
Creates the record from an array- Parameters:
arr
- Array with valuesn
- size of the record's arrays- Returns:
- the record
-
toArray
Puts all record values into a single array- Returns:
- array with all values
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
C12Pom
Returns the value of theC12Pom
record component.- Returns:
- the value of the
C12Pom
record component
-
C14Pom
Returns the value of theC14Pom
record component.- Returns:
- the value of the
C14Pom
record component
-
NPom
Returns the value of theNPom
record component.- Returns:
- the value of the
NPom
record component
-
C12Dom
Returns the value of theC12Dom
record component.- Returns:
- the value of the
C12Dom
record component
-
C14Dom
Returns the value of theC14Dom
record component.- Returns:
- the value of the
C14Dom
record component
-
NDom
Returns the value of theNDom
record component.- Returns:
- the value of the
NDom
record component
-
C12Microbes
Returns the value of theC12Microbes
record component.- Returns:
- the value of the
C12Microbes
record component
-
C14Microbes
Returns the value of theC14Microbes
record component.- Returns:
- the value of the
C14Microbes
record component
-
NMicrobes
Returns the value of theNMicrobes
record component.- Returns:
- the value of the
NMicrobes
record component
-
C12Necromass
Returns the value of theC12Necromass
record component.- Returns:
- the value of the
C12Necromass
record component
-
C14Necromass
Returns the value of theC14Necromass
record component.- Returns:
- the value of the
C14Necromass
record component
-
NNecromass
Returns the value of theNNecromass
record component.- Returns:
- the value of the
NNecromass
record component
-
C12MaomDom
Returns the value of theC12MaomDom
record component.- Returns:
- the value of the
C12MaomDom
record component
-
C14MaomDom
Returns the value of theC14MaomDom
record component.- Returns:
- the value of the
C14MaomDom
record component
-
NMaomDom
Returns the value of theNMaomDom
record component.- Returns:
- the value of the
NMaomDom
record component
-
C12MaomNecromass
Returns the value of theC12MaomNecromass
record component.- Returns:
- the value of the
C12MaomNecromass
record component
-
C14MaomNecromass
Returns the value of theC14MaomNecromass
record component.- Returns:
- the value of the
C14MaomNecromass
record component
-
NMaomNecromass
Returns the value of theNMaomNecromass
record component.- Returns:
- the value of the
NMaomNecromass
record component
-
C12Co2
Returns the value of theC12Co2
record component.- Returns:
- the value of the
C12Co2
record component
-
C14Co2
Returns the value of theC14Co2
record component.- Returns:
- the value of the
C14Co2
record component
-
NMin
Returns the value of theNMin
record component.- Returns:
- the value of the
NMin
record component
-
Surf
Returns the value of theSurf
record component.- Returns:
- the value of the
Surf
record component
-