예제 #1
0
  /**
   * 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
 public Portfolio(final PortfolioEntity portfolioTable) {
   // Portfolio without algorithm yet.
   this.portfolioTable = portfolioTable;
   jpaHelper = JPAHelper.getInstance();
 }