Package cdm.observable.asset
Class PriceSchedule.PriceScheduleImpl
java.lang.Object
cdm.base.math.MeasureBase.MeasureBaseImpl
cdm.base.math.MeasureSchedule.MeasureScheduleImpl
cdm.observable.asset.PriceSchedule.PriceScheduleImpl
- All Implemented Interfaces:
MeasureBase,MeasureSchedule,PriceSchedule,com.rosetta.model.lib.RosettaModelObject
- Direct Known Subclasses:
Price.PriceImpl
- Enclosing interface:
PriceSchedule
public static class PriceSchedule.PriceScheduleImpl
extends MeasureSchedule.MeasureScheduleImpl
implements PriceSchedule
Immutable Implementation of PriceSchedule
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.base.math.MeasureBase
MeasureBase.MeasureBaseBuilder, MeasureBase.MeasureBaseBuilderImpl, MeasureBase.MeasureBaseImplNested classes/interfaces inherited from interface cdm.base.math.MeasureSchedule
MeasureSchedule.MeasureScheduleBuilder, MeasureSchedule.MeasureScheduleBuilderImpl, MeasureSchedule.MeasureScheduleImplNested classes/interfaces inherited from interface cdm.observable.asset.PriceSchedule
PriceSchedule.PriceScheduleBuilder, PriceSchedule.PriceScheduleBuilderImpl, PriceSchedule.PriceScheduleImpl -
Field Summary
Fields inherited from interface cdm.base.math.MeasureBase
metaDataFields inherited from interface cdm.base.math.MeasureSchedule
metaDataFields inherited from interface cdm.observable.asset.PriceSchedule
metaData -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build Methodsboolean(Optionally) When the price is to be understood as an operator to apply to an observable, i.e. a spread, multiplier or min/max.(Optionally when the price type is cash) Additional attributes that further define a cash price, e.g. what type of fee it is.(Optionally) Specifies the underlying price components if the price can be expressed as a composite: e.g. dirty price = clean price + accrued.Provides an attribute to define the unit of the thing being priced.(Optionally) Specifies whether the price is expressed in absolute or percentage terms.Specifies the price type as an enumeration: interest rate, exchange rate, asset price etc.inthashCode()protected voidtoString()Methods inherited from class cdm.base.math.MeasureSchedule.MeasureScheduleImpl
getDatedValue, setBuilderFieldsMethods inherited from class cdm.base.math.MeasureBase.MeasureBaseImpl
getUnit, getValue, setBuilderFieldsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.base.math.MeasureBase
getUnit, getValueMethods inherited from interface cdm.base.math.MeasureSchedule
getDatedValueMethods inherited from interface cdm.observable.asset.PriceSchedule
getType, metaData, processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Constructor Details
-
PriceScheduleImpl
-
-
Method Details
-
getPerUnitOf
Description copied from interface:PriceScheduleProvides an attribute to define the unit of the thing being priced. For example, {amount, unitOfAmount, PerUnitOfAmount} = [10, EUR, Shares] = (10.00 EUR/SHARE) * (300,000 SHARES) = EUR 3,000,000.00 (Shares cancel out in the calculation).- Specified by:
getPerUnitOfin interfacePriceSchedule
-
getPriceType
@RosettaAttribute(value="priceType", isRequired=true) @RuneAttribute(value="priceType", isRequired=true) public PriceTypeEnum getPriceType()Description copied from interface:PriceScheduleSpecifies the price type as an enumeration: interest rate, exchange rate, asset price etc. This attribute is mandatory so that prices can always be clasiffied according to their type. The price type implies some constraints on the price's units.- Specified by:
getPriceTypein interfacePriceSchedule
-
getPriceExpression
@RosettaAttribute("priceExpression") @RuneAttribute("priceExpression") public PriceExpressionEnum getPriceExpression()Description copied from interface:PriceSchedule(Optionally) Specifies whether the price is expressed in absolute or percentage terms.- Specified by:
getPriceExpressionin interfacePriceSchedule
-
getComposite
Description copied from interface:PriceSchedule(Optionally) Specifies the underlying price components if the price can be expressed as a composite: e.g. dirty price = clean price + accrued.- Specified by:
getCompositein interfacePriceSchedule
-
getArithmeticOperator
@RosettaAttribute("arithmeticOperator") @RuneAttribute("arithmeticOperator") public ArithmeticOperationEnum getArithmeticOperator()Description copied from interface:PriceSchedule(Optionally) When the price is to be understood as an operator to apply to an observable, i.e. a spread, multiplier or min/max.- Specified by:
getArithmeticOperatorin interfacePriceSchedule
-
getCashPrice
Description copied from interface:PriceSchedule(Optionally when the price type is cash) Additional attributes that further define a cash price, e.g. what type of fee it is.- Specified by:
getCashPricein interfacePriceSchedule
-
build
Description copied from interface:MeasureBaseBuild Methods- Specified by:
buildin interfaceMeasureBase- Specified by:
buildin interfaceMeasureSchedule- Specified by:
buildin interfacePriceSchedule- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject- Overrides:
buildin classMeasureSchedule.MeasureScheduleImpl
-
toBuilder
- Specified by:
toBuilderin interfaceMeasureBase- Specified by:
toBuilderin interfaceMeasureSchedule- Specified by:
toBuilderin interfacePriceSchedule- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject- Overrides:
toBuilderin classMeasureSchedule.MeasureScheduleImpl
-
setBuilderFields
-
equals
- Overrides:
equalsin classMeasureSchedule.MeasureScheduleImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classMeasureSchedule.MeasureScheduleImpl
-
toString
- Overrides:
toStringin classMeasureSchedule.MeasureScheduleImpl
-