public class CATCompartment
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Class and Description |
---|---|
static class |
CATCompartment.CompartmentInfo
This enum contains basic information on the carbon compartments.
|
protected static class |
CATCompartment.PoolCategory |
Modifier | Constructor and Description |
---|---|
protected |
CATCompartment(CATCompartmentManager compartmentManager,
CATCompartment.CompartmentInfo compartmentInfo)
General constructor for a CarbonCompartment object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addFatherCompartment(CATCompartment carbonCompartment) |
void |
calculateAndIntegrateCarbon()
This method calculates and integrates the carbon for this compartment by calling the
method library and using the appropriate method.
|
int |
compareTo(java.lang.Object o) |
protected double[] |
getCalculatedCarbonArray() |
protected Matrix |
getCarbonEvolution(double plotAreaHa)
This method return a Matrix with the carbon stock per ha.
|
protected java.util.Collection<? extends CarbonUnit>[] |
getCarbonUnitsArray() |
CATCompartment.CompartmentInfo |
getCompartmentID() |
CATCompartmentManager |
getCompartmentManager() |
java.util.List<CATCompartment> |
getFatherCompartment() |
protected double |
getIntegratedCarbon() |
double |
getIntegratedCarbon(double plotAreaHa)
This method returns a random variable that contains the integrated carbon per ha.
|
protected CATTimeTable |
getTimeTable() |
protected void |
mergeWithFatherCompartments()
This method merges the carbon values of the father compartments into this compartment.
|
protected void |
resetCarbon()
This method initializes the carbon map array.
|
protected void |
setCarbonIntoArray(int indexDate,
double d) |
protected void |
setCarbonUnitsArray(java.util.Collection<? extends CarbonUnit>[] carbonUnitsCollectionArray) |
protected void |
setIntegratedCarbon(double integratedCarbon) |
protected CATCompartment(CATCompartmentManager compartmentManager, CATCompartment.CompartmentInfo compartmentInfo)
compartmentManager
- = the compartment manager that handles this compartmentcompartmentInfo
- = the compartment info of this compartmentpublic CATCompartment.CompartmentInfo getCompartmentID()
public CATCompartmentManager getCompartmentManager()
protected void addFatherCompartment(CATCompartment carbonCompartment)
protected double[] getCalculatedCarbonArray()
protected double getIntegratedCarbon()
protected void setIntegratedCarbon(double integratedCarbon)
protected void setCarbonUnitsArray(java.util.Collection<? extends CarbonUnit>[] carbonUnitsCollectionArray)
protected java.util.Collection<? extends CarbonUnit>[] getCarbonUnitsArray()
protected void resetCarbon()
protected Matrix getCarbonEvolution(double plotAreaHa)
plotAreaHa
- the area of the plot in hapublic double getIntegratedCarbon(double plotAreaHa)
plotAreaHa
- the plot area in ha (double)protected void setCarbonIntoArray(int indexDate, double d)
protected void mergeWithFatherCompartments()
public java.util.List<CATCompartment> getFatherCompartment()
public void calculateAndIntegrateCarbon() throws java.lang.Exception
java.lang.Exception
protected CATTimeTable getTimeTable()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable