Class InputSelector

    • Constructor Detail

      • InputSelector

        public InputSelector​(org.springframework.core.env.Environment environment)
    • Method Detail

      • getFormulaInput

        public String getFormulaInput​(String sensitivityName)
        Description copied from interface: IInputSelector
        Returns the configured input for the PnLExplain or TaylorVaR calculations. The "formula.input" property should take the following case-insensitive values: "formula.input.vanna=SENSI-ONLY" "formula.input.delta=LADDER-ONLY" "formula.input.gamma="LADDER-FIRST" An empty property, or no setting, should default to "LADDER-FIRST", which will attempt to calculate the input from the sensitivity ladder or revert to the standard sensitivity if the ladder does not exist.
        Specified by:
        getFormulaInput in interface IInputSelector
        Parameters:
        sensitivityName - The name of the sensitivity.
        Returns:
        The formula input property.
      • hasSecondOrderLadder

        public boolean hasSecondOrderLadder​(String sensitivityName)
        Description copied from interface: IInputSelector
        Returns whether the sensitivity ladder is second order, depending on the sensitivity name.
        Specified by:
        hasSecondOrderLadder in interface IInputSelector
        Parameters:
        sensitivityName - The sensitivity name.
        Returns:
        True if the sensitivity ladder is second order, false otherwise.