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
- 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()
setMap
public void setMap(Map<String,BrokerModel> map)
setBrokers
public void setBrokers(ArrayList<BrokerModel> brokers)
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
getJson
public BrokersJSON getJson()
setJson
public void setJson(BrokersJSON json)
activate
public void activate(int timeslotIndex)
- Specified by:
activate in interface TimeslotCompleteActivation
- Parameters:
timeslotIndex - index of completed timeslot.
getBrokerList
public List<BrokerModel> getBrokerList()
getBrokers
public ArrayList<BrokerModel> getBrokers()
Copyright © 2012 Power TAC. All Rights Reserved.