org.powertac.visualizer
Class Helper

java.lang.Object
  extended by org.powertac.visualizer.Helper

public class Helper
extends Object


Constructor Summary
Helper()
           
 
Method Summary
static int getCustomerCount(org.powertac.common.TariffTransaction tariffTransaction)
           
static String getJsonDate(org.joda.time.Instant time)
           
static org.primefaces.json.JSONArray pointJSON(int x, double y)
           
static double roundNumberTwoDecimal(double number)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Helper

public Helper()
Method Detail

getCustomerCount

public static int getCustomerCount(org.powertac.common.TariffTransaction tariffTransaction)
Parameters:
tariffTransaction -
Returns:
positive number for new customers, negative number for ex customers. Otherwise, zero is returned.

pointJSON

public static org.primefaces.json.JSONArray pointJSON(int x,
                                                      double y)

roundNumberTwoDecimal

public static double roundNumberTwoDecimal(double number)

getJsonDate

public static String getJsonDate(org.joda.time.Instant time)


Copyright © 2012 Power TAC. All Rights Reserved.