@Service public class BrokerService extends Object implements TimeslotCompleteActivation, Recyclable, Serializable
| Constructor and Description |
|---|
BrokerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(int timeslotIndex,
org.joda.time.Instant postedTime) |
BrokerModel |
findBrokerByName(String name) |
ArrayList<String> |
getBrokerNames() |
ArrayList<BrokerModel> |
getBrokers() |
ConcurrentHashMap<String,BrokerModel> |
getBrokersMap() |
ArrayList<Integer> |
getCustomersDelta() |
ArrayList<Double> |
getEnergyDelta() |
int |
getNumberOfBrokers() |
String |
getRanking() |
ArrayList<Double> |
getRevenueDelta() |
ArrayList<Double> |
getWholesaleEnergyDelta() |
void |
recycle() |
void |
setBrokers(ArrayList<BrokerModel> brokers) |
void |
setBrokersMap(ConcurrentHashMap<String,BrokerModel> brokersMap) |
public ConcurrentHashMap<String,BrokerModel> getBrokersMap()
public void setBrokers(ArrayList<BrokerModel> brokers)
public void setBrokersMap(ConcurrentHashMap<String,BrokerModel> brokersMap)
public BrokerModel findBrokerByName(String name)
name - public void recycle()
recycle in interface Recyclablepublic void activate(int timeslotIndex,
org.joda.time.Instant postedTime)
activate in interface TimeslotCompleteActivationtimeslotIndex - index of completed timeslot.public ArrayList<BrokerModel> getBrokers()
public int getNumberOfBrokers()
public String getRanking()
Copyright © 2015 Power TAC. All Rights Reserved.