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

See Also:
Serialized Form

Constructor Summary
BrokerService()
           
 
Method Summary
 void activate(int timeslotIndex, org.joda.time.Instant postedTime)
           
 BrokerModel findBrokerByName(String name)
           
 List<BrokerModel> getBrokerList()
           
 ArrayList<BrokerModel> getBrokers()
           
 BrokersJSON getJson()
           
 void recycle()
           
 void setBrokers(ArrayList<BrokerModel> brokers)
           
 void setJson(BrokersJSON json)
           
 void setMap(Map<String,BrokerModel> map)
           
 
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

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,
                     org.joda.time.Instant postedTime)
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.