Interface ProjectResults

  • All Superinterfaces:
    SettingsTables, Types

    public interface ProjectResults
    extends Types, SettingsTables
    This is where the optimizer output goes. The definitive place to get the output optimal portfolio.
    • Method Detail

      • initialPortfolioWeightingType

        Types.WeightingType initialPortfolioWeightingType()
        returns the initial portfolio weighting type. Shares, percent, equal, market cap or share lots.
        Returns:
        initial portfolio weighting type
      • initialPortfolioWeightingType

        void initialPortfolioWeightingType​(Types.WeightingType type)
        returns the initial portfolio weighting type. Shares, percent, equal, market cap or share lots.
        Parameters:
        type - initial portfolio weighting type.
      • initialPortfolio

        SettingsTables.PortfolioRow[] initialPortfolio()
        returns an array of initial portfolio asset id / value pairs. value units depend on weighting type.
        Returns:
        initial portfolio
      • optimalPortfolioWeightingType

        Types.WeightingType optimalPortfolioWeightingType()
        returns the optimal portfolio weighting type. Shares, percent, equal, market cap or share lots.
        Returns:
        optimal portfolio weighting type
      • optimalPortfolioWeightingType

        void optimalPortfolioWeightingType​(Types.WeightingType type)
        sets the optimal portfolio weighting type. Shares, percent, equal, market cap or share lots.
        Parameters:
        type - optimal portfolio weighting type.
      • optimalPortfolio

        SettingsTables.PortfolioRow[] optimalPortfolio()
        returns an array of portfolio row objects representing the optimal portfolio. asset id / value pairs. value units depend on the optimal portfolio type. if it's a tax enabled problem price at acquisition and date at acquisition will be available in addition to asset id and shares.
        Returns:
        optimal portfolio
      • addInitialPortfolio

        void addInitialPortfolio​(java.lang.String id,
                                 double value,
                                 double price,
                                 java.lang.String date,
                                 java.lang.String serialNumber,
                                 boolean taxItem,
                                 java.lang.Double priceAdjust,
                                 java.lang.String dateAdjust)
      • addOptimalPortfolio

        void addOptimalPortfolio​(java.lang.String id,
                                 double value,
                                 double price,
                                 java.lang.String date,
                                 java.lang.String serialNumber,
                                 boolean taxItem,
                                 java.lang.Double priceAdjust,
                                 java.lang.String dateAdjust)