public class TechnicalSystemStateDeltaEvaluation.AmountsAndCosts
extends java.lang.Object
EnergyAmount
s or good amounts their corresponding costs.Constructor and Description |
---|
AmountsAndCosts(double goodAmount,
java.lang.String domainUnit,
double costs,
java.lang.String costUnit)
Instantiates a new energy amount and costs instance.
|
AmountsAndCosts(EnergyAmount energyAmount,
double costs,
java.lang.String costUnit)
Instantiates a new energy amount and costs instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addUp(TechnicalSystemStateDeltaEvaluation.AmountsAndCosts eaacForAddition)
Does a mathematically addition for the
EnergyAmount and costs with the current instance. |
double |
getCosts()
Returns the costs.
|
java.lang.String |
getCostUnit()
Gets the cost unit.
|
java.lang.String |
getDomainUnit()
Returns the domain unit.
|
EnergyAmount |
getEnergyAmount()
Gets the energy amount.
|
java.lang.Double |
getGoodAmount()
Gets the good amount.
|
TechnicalSystemStateDeltaEvaluation.InterfaceType |
getInterfaceType()
Returns the current
TechnicalSystemStateDeltaEvaluation.InterfaceType . |
void |
setCosts(double costs)
Sets the costs.
|
void |
setCostUnit(java.lang.String costUnit)
Sets the cost unit.
|
void |
setDomainUnit(java.lang.String domainUnit)
Sets the domain unit.
|
void |
setEnergyAmount(EnergyAmount energyAmount)
Sets the energy amount.
|
void |
setGoodAmount(java.lang.Double goodAmount)
Sets the good amount.
|
java.lang.String |
toString() |
public AmountsAndCosts(EnergyAmount energyAmount, double costs, java.lang.String costUnit)
energyAmount
- the energy amountcosts
- the related costs of the energy amountcostUnit
- the current cost unit as stringpublic AmountsAndCosts(double goodAmount, java.lang.String domainUnit, double costs, java.lang.String costUnit)
goodAmount
- the good amountdomainUnit
- the domain unitcosts
- the related costs of the energy amountcostUnit
- the current cost unit as stringpublic void addUp(TechnicalSystemStateDeltaEvaluation.AmountsAndCosts eaacForAddition)
EnergyAmount
and costs with the current instance.eaacForAddition
- the energy amount and costs for the additionpublic java.lang.String toString()
toString
in class java.lang.Object
public TechnicalSystemStateDeltaEvaluation.InterfaceType getInterfaceType()
TechnicalSystemStateDeltaEvaluation.InterfaceType
.public EnergyAmount getEnergyAmount()
public void setEnergyAmount(EnergyAmount energyAmount)
energyAmount
- the new energy amountpublic java.lang.Double getGoodAmount()
public void setGoodAmount(java.lang.Double goodAmount)
goodAmount
- the new good amountpublic java.lang.String getDomainUnit()
public void setDomainUnit(java.lang.String domainUnit)
domainUnit
- the new domain unitpublic double getCosts()
public void setCosts(double costs)
costs
- the new costspublic java.lang.String getCostUnit()
public void setCostUnit(java.lang.String costUnit)
costUnit
- the new cost unit