org.powertac.visualizer.services
Class BrokerService
java.lang.Object
org.powertac.visualizer.services.BrokerService
- All Implemented Interfaces:
- Serializable, Recyclable, TimeslotCompleteActivation
@Service
public class BrokerService
- extends Object
- implements TimeslotCompleteActivation, Recyclable, Serializable
- Author:
- Jurica Babic
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrokerService
public BrokerService()
getBrokersMap
public ConcurrentHashMap<String,BrokerModel> getBrokersMap()
setBrokers
public void setBrokers(ArrayList<BrokerModel> brokers)
setBrokersMap
public void setBrokersMap(ConcurrentHashMap<String,BrokerModel> brokersMap)
findBrokerByName
public BrokerModel findBrokerByName(String name)
- Parameters:
name -
- Returns:
- Broker model associated with a specified name, or null if the
broker cannot be found.
recycle
public void recycle()
- Specified by:
recycle in interface Recyclable
activate
public void activate(int timeslotIndex,
org.joda.time.Instant postedTime)
- Specified by:
activate in interface TimeslotCompleteActivation
- Parameters:
timeslotIndex - index of completed timeslot.
getBrokers
public ArrayList<BrokerModel> getBrokers()
getNumberOfBrokers
public int getNumberOfBrokers()
getBrokerNames
public ArrayList<String> getBrokerNames()
getRanking
public String getRanking()
getEnergyDelta
public ArrayList<Double> getEnergyDelta()
getRevenueDelta
public ArrayList<Double> getRevenueDelta()
getCustomersDelta
public ArrayList<Integer> getCustomersDelta()
getWholesaleEnergyDelta
public ArrayList<Double> getWholesaleEnergyDelta()
Copyright © 2013 Power TAC. All Rights Reserved.