Record Class SaCcr.Result
java.lang.Object
java.lang.Record
com.quantfinlib.risk.SaCcr.Result
- Record Components:
marketValue- V, the net market valuereplacementCost- RCaddOnInterestRate- rates add-onaddOnFx- FX add-onaddOnCredit- credit add-onaddOnEquity- equity add-onaddOnCommodity- commodity add-onaddOnAggregate- sum of the fivemultiplier- the PFE multiplierpfe- multiplier times aggregate add-onead- alpha times (RC + PFE)
- Enclosing class:
SaCcr
public static record SaCcr.Result(double marketValue, double replacementCost, double addOnInterestRate, double addOnFx, double addOnCredit, double addOnEquity, double addOnCommodity, double addOnAggregate, double multiplier, double pfe, double ead)
extends Record
SA-CCR outputs for one netting set.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(double marketValue, double replacementCost, double addOnInterestRate, double addOnFx, double addOnCredit, double addOnEquity, double addOnCommodity, double addOnAggregate, double multiplier, double pfe, double ead) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theaddOnAggregaterecord component.doubleReturns the value of theaddOnCommodityrecord component.doubleReturns the value of theaddOnCreditrecord component.doubleReturns the value of theaddOnEquityrecord component.doubleaddOnFx()Returns the value of theaddOnFxrecord component.doubleReturns the value of theaddOnInterestRaterecord component.doubleead()Returns the value of theeadrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themarketValuerecord component.doubleReturns the value of themultiplierrecord component.doublepfe()Returns the value of thepferecord component.doubleReturns the value of thereplacementCostrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(double marketValue, double replacementCost, double addOnInterestRate, double addOnFx, double addOnCredit, double addOnEquity, double addOnCommodity, double addOnAggregate, double multiplier, double pfe, double ead) Creates an instance of aResultrecord class.- Parameters:
marketValue- the value for themarketValuerecord componentreplacementCost- the value for thereplacementCostrecord componentaddOnInterestRate- the value for theaddOnInterestRaterecord componentaddOnFx- the value for theaddOnFxrecord componentaddOnCredit- the value for theaddOnCreditrecord componentaddOnEquity- the value for theaddOnEquityrecord componentaddOnCommodity- the value for theaddOnCommodityrecord componentaddOnAggregate- the value for theaddOnAggregaterecord componentmultiplier- the value for themultiplierrecord componentpfe- the value for thepferecord componentead- the value for theeadrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
marketValue
public double marketValue()Returns the value of themarketValuerecord component.- Returns:
- the value of the
marketValuerecord component
-
replacementCost
public double replacementCost()Returns the value of thereplacementCostrecord component.- Returns:
- the value of the
replacementCostrecord component
-
addOnInterestRate
public double addOnInterestRate()Returns the value of theaddOnInterestRaterecord component.- Returns:
- the value of the
addOnInterestRaterecord component
-
addOnFx
-
addOnCredit
public double addOnCredit()Returns the value of theaddOnCreditrecord component.- Returns:
- the value of the
addOnCreditrecord component
-
addOnEquity
public double addOnEquity()Returns the value of theaddOnEquityrecord component.- Returns:
- the value of the
addOnEquityrecord component
-
addOnCommodity
public double addOnCommodity()Returns the value of theaddOnCommodityrecord component.- Returns:
- the value of the
addOnCommodityrecord component
-
addOnAggregate
public double addOnAggregate()Returns the value of theaddOnAggregaterecord component.- Returns:
- the value of the
addOnAggregaterecord component
-
multiplier
public double multiplier()Returns the value of themultiplierrecord component.- Returns:
- the value of the
multiplierrecord component
-
pfe
-
ead
-