コード例 #1
0
ファイル: Portfolio.java プロジェクト: tradebase/stock-robot
  /**
   * Start up an existing portfolio
   *
   * @param portfolioTable The table with this portfolio
   */
  public Portfolio(final PortfolioEntity portfolioTable, final IAlgorithm algorithm) {
    jpaHelper = JPAHelper.getInstance();
    this.portfolioTable = portfolioTable;
    this.algorithm = algorithm;

    Log.log(TAG.VERY_VERBOSE, "Portfolio " + portfolioTable.getName() + " is loaded");
  }
コード例 #2
0
ファイル: Portfolio.java プロジェクト: tradebase/stock-robot
 public Portfolio(final PortfolioEntity portfolioTable) {
   // Portfolio without algorithm yet.
   this.portfolioTable = portfolioTable;
   jpaHelper = JPAHelper.getInstance();
 }