Package cdm.event.common.functions
Class Create_TradeState
java.lang.Object
cdm.event.common.functions.Create_TradeState
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
Create_TradeState.Create_TradeStateDefault
public abstract class Create_TradeState
extends Object
implements com.rosetta.model.lib.functions.RosettaFunction
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.rosetta.model.lib.functions.ConditionValidatorprotected Create_ContractFormationprotected Create_Executionprotected Create_IndexTransitionTermsChangeprotected Create_Observationprotected Create_PartyChangeprotected Create_QuantityChangeprotected Create_Resetprotected Create_StockSplitprotected Create_TermsChangeprotected Create_Transferprotected Create_Valuationprotected com.rosetta.model.lib.functions.ModelObjectValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> contractFormation(PrimitiveInstruction primitiveInstruction, TradeState before) protected abstract TradeState.TradeStateBuilderdoEvaluate(PrimitiveInstruction primitiveInstruction, TradeState before) evaluate(PrimitiveInstruction primitiveInstruction, TradeState before) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> execution(PrimitiveInstruction primitiveInstruction, TradeState before) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> indexTransition(PrimitiveInstruction primitiveInstruction, TradeState before) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> observation(PrimitiveInstruction primitiveInstruction, TradeState before) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> partyChange(PrimitiveInstruction primitiveInstruction, TradeState before) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> quantityChange(PrimitiveInstruction primitiveInstruction, TradeState before) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> reset(PrimitiveInstruction primitiveInstruction, TradeState before) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> stockSplit(PrimitiveInstruction primitiveInstruction, TradeState before) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> termsChange(PrimitiveInstruction primitiveInstruction, TradeState before) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> transfer(PrimitiveInstruction primitiveInstruction, TradeState before) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> valuation(PrimitiveInstruction primitiveInstruction, TradeState before) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.functions.RosettaFunction
toBuilder, toBuilder, toBuilder
-
Field Details
-
conditionValidator
@Inject protected com.rosetta.model.lib.functions.ConditionValidator conditionValidator -
objectValidator
@Inject protected com.rosetta.model.lib.functions.ModelObjectValidator objectValidator -
create_ContractFormation
-
create_Execution
-
create_IndexTransitionTermsChange
-
create_Observation
-
create_PartyChange
-
create_QuantityChange
-
create_Reset
-
create_StockSplit
-
create_TermsChange
-
create_Transfer
-
create_Valuation
-
-
Constructor Details
-
Create_TradeState
public Create_TradeState()
-
-
Method Details
-
evaluate
- Parameters:
primitiveInstruction- The set of primitive instructions to apply to the trade.before- The original trade on which the primitive instructions are applied- Returns:
- after The returned trade state must be of single cardinality. Where a different trade is created and the original trade must be persisted (for instance showing as 'closed'), it should be preceded by a split instruction.
-
doEvaluate
protected abstract TradeState.TradeStateBuilder doEvaluate(PrimitiveInstruction primitiveInstruction, TradeState before) -
execution
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> execution(PrimitiveInstruction primitiveInstruction, TradeState before) -
quantityChange
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> quantityChange(PrimitiveInstruction primitiveInstruction, TradeState before) -
termsChange
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> termsChange(PrimitiveInstruction primitiveInstruction, TradeState before) -
partyChange
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> partyChange(PrimitiveInstruction primitiveInstruction, TradeState before) -
contractFormation
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> contractFormation(PrimitiveInstruction primitiveInstruction, TradeState before) -
transfer
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> transfer(PrimitiveInstruction primitiveInstruction, TradeState before) -
reset
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> reset(PrimitiveInstruction primitiveInstruction, TradeState before) -
indexTransition
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> indexTransition(PrimitiveInstruction primitiveInstruction, TradeState before) -
observation
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> observation(PrimitiveInstruction primitiveInstruction, TradeState before) -
valuation
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> valuation(PrimitiveInstruction primitiveInstruction, TradeState before) -
stockSplit
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradeState> stockSplit(PrimitiveInstruction primitiveInstruction, TradeState before)
-