Examples of TagHierarchy


Examples of com.wesabe.api.accounts.analytics.TagHierarchy

      this.restaurants = new Node(tag("restaurants"), new SumOfMoney(money("20.00", USD), 1), ImmutableList.<Node>of());
      this.groceries = new Node(tag("groceries"), new SumOfMoney(money("30.00", USD), 1), ImmutableList.<Node>of());
      this.food = new Node(tag("food"), new SumOfMoney(money("50.00", USD), 2), ImmutableList.of(restaurants, groceries));
      this.entertainment = new Node(tag("entertainment"), new SumOfMoney(money("50.00", USD), 1), ImmutableList.<Node>of());
     
      this.hierarchy = new TagHierarchy(ImmutableList.of(food, entertainment), new SumOfMoney(money("100.00", USD), 3));
    }
View Full Code Here

Examples of com.wesabe.api.accounts.analytics.TagHierarchy

    public void setup() throws Exception {
      this.food = new Tag("food");
      this.foodSpending = new SumOfMoney(money("100.00", USD), 10);
      this.total = new SumOfMoney(money("100.00", USD), 10);
      this.foodNode = new Node(food, foodSpending, ImmutableList.<Node>of());
      this.hierarchy = new TagHierarchy(ImmutableList.of(foodNode), total);
    }
View Full Code Here

Examples of com.wesabe.api.accounts.analytics.TagHierarchy

    final List<Account> accounts = accountDAO.findVisibleAccounts(user.getAccountKey());

    final List<Txaction> txactions = txactionDAO.findTxactionsInDateRange(accounts, dateRange);

    final TagHierarchy tagHierarchy = tagHierarchyBuilder.build(
      txactions,
      currency.getValue(),
      getTagImportanceScheme(rankByAmount.getValue()),
      getHierarchyType(spending.getValue()),
      ImmutableSet.<Tag> of(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.