Package org.isda.cdm

Class AllocationPrimitive


  • @RosettaClass
    public class AllocationPrimitive
    extends com.rosetta.model.lib.RosettaModelObject
    The primitive event to represent a split/allocation of a trade. As part of this primitive event the type of trade, either an execution or a contract, does not get altered. In the case of an execution, the further transformation of each split execution into a contract will be the purpose of the ContractFormation primitive.
    Version:
    2.5.4
    • Method Detail

      • getAfter

        @RosettaSynonym(value="after",
                        source="Rosetta_Workbench")
        public final AllocationOutcome getAfter()
        Outcome of the allocation as a list of Trades, which is either a split execution or a split contract, plus a pointer to the previous execution or contract marked as 'Allocated'.
      • getBefore

        @RosettaSynonym(value="before",
                        source="Rosetta_Workbench")
        public final Trade getBefore()
        The trade before allocation, which is either an execution if allocation happens before the contract is formed, or an already formed contract.
      • metaData

        public com.rosetta.model.lib.meta.RosettaMetaData<? extends AllocationPrimitive> metaData()
        Specified by:
        metaData in class com.rosetta.model.lib.RosettaModelObject
      • process

        public void process​(com.rosetta.model.lib.path.RosettaPath path,
                            com.rosetta.model.lib.process.Processor processor)
        Specified by:
        process in class com.rosetta.model.lib.RosettaModelObject
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object