Class APnLScenarioScalingRestService<T extends PnLVectorScalingDTO>

    • Field Detail

      • datastore

        protected com.qfs.store.IDatastore datastore
    • Constructor Detail

      • APnLScenarioScalingRestService

        public APnLScenarioScalingRestService​(com.qfs.store.IDatastore datastore)
    • Method Detail

      • generateTradeCondition

        public com.qfs.condition.ICondition generateTradeCondition​(PnLVectorScalingDTO dto,
                                                                   boolean useAsOfDate)
        Generate the ICondition used to retrieve the data corresponding to the trades to scale
        Parameters:
        dto - the DTO
        useAsOfDate - boolean flag that determines whether the as of date is added to the ICondition or not
        Returns:
        ICondition
      • getIndicesFromScenario

        public ArrayList<Integer> getIndicesFromScenario​(PnLVectorScalingDTO submission)
        Retrieve the indices corresponding to the scenarios pesent in the submission
        Parameters:
        submission - the submission
        Returns:
        the list of scenario indices