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
ConstructorsConstructorDescriptionSOMVariables(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 aSOMVariablesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionDouble[]C12Co2()Returns the value of theC12Co2record component.Double[]C12Dom()Returns the value of theC12Domrecord component.Double[]Returns the value of theC12MaomDomrecord component.Double[]Returns the value of theC12MaomNecromassrecord component.Double[]Returns the value of theC12Microbesrecord component.Double[]Returns the value of theC12Necromassrecord component.Double[]C12Pom()Returns the value of theC12Pomrecord component.Double[]C14Co2()Returns the value of theC14Co2record component.Double[]C14Dom()Returns the value of theC14Domrecord component.Double[]Returns the value of theC14MaomDomrecord component.Double[]Returns the value of theC14MaomNecromassrecord component.Double[]Returns the value of theC14Microbesrecord component.Double[]Returns the value of theC14Necromassrecord component.Double[]C14Pom()Returns the value of theC14Pomrecord component.final booleanIndicates whether some other object is "equal to" this one.static AMPSomFunctions.SOMVariablesCreates the record from an arrayfinal inthashCode()Returns a hash code value for this object.Double[]NDom()Returns the value of theNDomrecord component.Double[]NMaomDom()Returns the value of theNMaomDomrecord component.Double[]Returns the value of theNMaomNecromassrecord component.Double[]Returns the value of theNMicrobesrecord component.Double[]NMin()Returns the value of theNMinrecord component.Double[]Returns the value of theNNecromassrecord component.Double[]NPom()Returns the value of theNPomrecord component.Double[]Surf()Returns the value of theSurfrecord component.Double[]toArray()Puts all record values into a single arrayfinal StringtoString()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 aSOMVariablesrecord class.- Parameters:
C12Pom- the value for theC12Pomrecord componentC14Pom- the value for theC14Pomrecord componentNPom- the value for theNPomrecord componentC12Dom- the value for theC12Domrecord componentC14Dom- the value for theC14Domrecord componentNDom- the value for theNDomrecord componentC12Microbes- the value for theC12Microbesrecord componentC14Microbes- the value for theC14Microbesrecord componentNMicrobes- the value for theNMicrobesrecord componentC12Necromass- the value for theC12Necromassrecord componentC14Necromass- the value for theC14Necromassrecord componentNNecromass- the value for theNNecromassrecord componentC12MaomDom- the value for theC12MaomDomrecord componentC14MaomDom- the value for theC14MaomDomrecord componentNMaomDom- the value for theNMaomDomrecord componentC12MaomNecromass- the value for theC12MaomNecromassrecord componentC14MaomNecromass- the value for theC14MaomNecromassrecord componentNMaomNecromass- the value for theNMaomNecromassrecord componentC12Co2- the value for theC12Co2record componentC14Co2- the value for theC14Co2record componentNMin- the value for theNMinrecord componentSurf- the value for theSurfrecord 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 theC12Pomrecord component.- Returns:
- the value of the
C12Pomrecord component
-
C14Pom
Returns the value of theC14Pomrecord component.- Returns:
- the value of the
C14Pomrecord component
-
NPom
Returns the value of theNPomrecord component.- Returns:
- the value of the
NPomrecord component
-
C12Dom
Returns the value of theC12Domrecord component.- Returns:
- the value of the
C12Domrecord component
-
C14Dom
Returns the value of theC14Domrecord component.- Returns:
- the value of the
C14Domrecord component
-
NDom
Returns the value of theNDomrecord component.- Returns:
- the value of the
NDomrecord component
-
C12Microbes
Returns the value of theC12Microbesrecord component.- Returns:
- the value of the
C12Microbesrecord component
-
C14Microbes
Returns the value of theC14Microbesrecord component.- Returns:
- the value of the
C14Microbesrecord component
-
NMicrobes
Returns the value of theNMicrobesrecord component.- Returns:
- the value of the
NMicrobesrecord component
-
C12Necromass
Returns the value of theC12Necromassrecord component.- Returns:
- the value of the
C12Necromassrecord component
-
C14Necromass
Returns the value of theC14Necromassrecord component.- Returns:
- the value of the
C14Necromassrecord component
-
NNecromass
Returns the value of theNNecromassrecord component.- Returns:
- the value of the
NNecromassrecord component
-
C12MaomDom
Returns the value of theC12MaomDomrecord component.- Returns:
- the value of the
C12MaomDomrecord component
-
C14MaomDom
Returns the value of theC14MaomDomrecord component.- Returns:
- the value of the
C14MaomDomrecord component
-
NMaomDom
Returns the value of theNMaomDomrecord component.- Returns:
- the value of the
NMaomDomrecord component
-
C12MaomNecromass
Returns the value of theC12MaomNecromassrecord component.- Returns:
- the value of the
C12MaomNecromassrecord component
-
C14MaomNecromass
Returns the value of theC14MaomNecromassrecord component.- Returns:
- the value of the
C14MaomNecromassrecord component
-
NMaomNecromass
Returns the value of theNMaomNecromassrecord component.- Returns:
- the value of the
NMaomNecromassrecord component
-
C12Co2
Returns the value of theC12Co2record component.- Returns:
- the value of the
C12Co2record component
-
C14Co2
Returns the value of theC14Co2record component.- Returns:
- the value of the
C14Co2record component
-
NMin
Returns the value of theNMinrecord component.- Returns:
- the value of the
NMinrecord component
-
Surf
Returns the value of theSurfrecord component.- Returns:
- the value of the
Surfrecord component
-