org.powertac.factoredcustomer
Class FactoredCustomerService

java.lang.Object
  extended by org.powertac.common.interfaces.TimeslotPhaseProcessor
      extended by org.powertac.factoredcustomer.FactoredCustomerService
All Implemented Interfaces:
org.powertac.common.interfaces.BrokerMessageListener, org.powertac.common.interfaces.NewTariffListener

@Service
public class FactoredCustomerService
extends org.powertac.common.interfaces.TimeslotPhaseProcessor
implements org.powertac.common.interfaces.BrokerMessageListener, org.powertac.common.interfaces.NewTariffListener

Author:
Prashant Reddy

Field Summary
protected  org.powertac.common.repo.RandomSeedRepo randomSeedRepo
           
 
Constructor Summary
FactoredCustomerService()
           
 
Method Summary
 void activate(org.joda.time.Instant now, int phase)
           
 String getConfigResource()
           
 List<org.powertac.factoredcustomer.FactoredCustomer> getCustomers()
           
protected  void loadCustomerProfiles(String configResource)
           
 void publishNewTariffs(List<org.powertac.common.Tariff> tariffs)
           
 void receiveMessage(Object msg)
           
 void setConfigResource(String resource)
           
 
Methods inherited from class org.powertac.common.interfaces.TimeslotPhaseProcessor
init, setTimeslotPhase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

randomSeedRepo

protected org.powertac.common.repo.RandomSeedRepo randomSeedRepo
Constructor Detail

FactoredCustomerService

public FactoredCustomerService()
Method Detail

loadCustomerProfiles

protected void loadCustomerProfiles(String configResource)

publishNewTariffs

public void publishNewTariffs(List<org.powertac.common.Tariff> tariffs)
Specified by:
publishNewTariffs in interface org.powertac.common.interfaces.NewTariffListener

activate

public void activate(org.joda.time.Instant now,
                     int phase)
Specified by:
activate in class org.powertac.common.interfaces.TimeslotPhaseProcessor

receiveMessage

public void receiveMessage(Object msg)
Specified by:
receiveMessage in interface org.powertac.common.interfaces.BrokerMessageListener

getConfigResource

public String getConfigResource()

setConfigResource

public void setConfigResource(String resource)

getCustomers

public List<org.powertac.factoredcustomer.FactoredCustomer> getCustomers()


Copyright © 2011 Power TAC. All Rights Reserved.