org.powertac.visualizer.domain.customer
Class Customer
java.lang.Object
org.powertac.visualizer.domain.customer.Customer
- All Implemented Interfaces:
- TimeslotModelUpdate
public class Customer
- extends Object
- implements TimeslotModelUpdate
Holds data for a particular customer type.
- Author:
- Jurica Babic
|
Constructor Summary |
Customer(org.powertac.common.CustomerInfo customerInfo)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Customer
public Customer(org.powertac.common.CustomerInfo customerInfo)
getCustomerModel
public CustomerModel getCustomerModel()
getCustomerJson
public CustomerJSON getCustomerJson()
addCustomerBootstrapData
public void addCustomerBootstrapData(org.powertac.common.msg.CustomerBootstrapData data,
org.powertac.common.Competition competition)
addTariffTransaction
public void addTariffTransaction(org.powertac.common.TariffTransaction transaction)
update
public void update(int timeslotIndex,
org.joda.time.Instant postedTime)
- Specified by:
update in interface TimeslotModelUpdate
- Parameters:
timeslotIndex - update will be run for this timeslot index.
getCustomerInfo
public org.powertac.common.CustomerInfo getCustomerInfo()
Copyright © 2012 Power TAC. All Rights Reserved.