org.powertac.visualizer.domain.broker
Class CustomerModel
java.lang.Object
org.powertac.visualizer.domain.broker.CustomerModel
public class CustomerModel
- extends Object
Represents customer model that belongs to a particular broker.
- Author:
- Jurica Babic
CustomerModel
public CustomerModel(org.powertac.common.CustomerInfo customerInfo)
CustomerModel
public CustomerModel()
addTariffTransaction
public void addTariffTransaction(org.powertac.common.TariffTransaction tariffTransaction)
- Adds TarrifTransaction object to history and updates customer model.
- Parameters:
tariffTransaction -
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
getCustomerCount
public int getCustomerCount()
getCustomerInfo
public org.powertac.common.CustomerInfo getCustomerInfo()
getTariffTransactions
public List<org.powertac.common.TariffTransaction> getTariffTransactions()
getCashInflow
public double getCashInflow()
getCashOutflow
public double getCashOutflow()
getTotalCash
public double getTotalCash()
getEnergyConsumption
public double getEnergyConsumption()
getEnergyProduction
public double getEnergyProduction()
getTotalEnergy
public double getTotalEnergy()
Copyright © 2013 Power TAC. All Rights Reserved.