org.powertac.visualizer.services
Class BrokerService

java.lang.Object
  extended by 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

Constructor Summary
BrokerService()
           
 
Method Summary
 void activate(int timeslotIndex, org.joda.time.Instant postedTime)
           
 BrokerModel findBrokerByName(String name)
           
 ArrayList<BrokerModel> getBrokers()
           
 ConcurrentHashMap<String,BrokerModel> getBrokersMap()
           
 void recycle()
           
 void setBrokers(ArrayList<BrokerModel> brokers)
           
 void setBrokersMap(ConcurrentHashMap<String,BrokerModel> brokersMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokerService

public BrokerService()
Method Detail

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()


Copyright © 2013 Power TAC. All Rights Reserved.