org.powertac.visualizer
Class Helper
java.lang.Object
org.powertac.visualizer.Helper
public class Helper
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Helper
public Helper()
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 © 2013 Power TAC. All Rights Reserved.