Package org.powertac.du
Class DefaultBroker
- java.lang.Object
-
- org.powertac.common.Broker
-
- org.powertac.du.DefaultBroker
-
-
Constructor Summary
Constructors Constructor Description DefaultBroker(String username)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
receiveMessage(Object object)
Receives a message intended for the broker, forwards it to the message handler in the enclosing service.void
setService(DefaultBrokerService service)
-
Methods inherited from class org.powertac.common.Broker
addMarketPosition, addMarketPosition, findMarketPositionByTimeslot, findMarketPositionByTimeslot, getCashBalance, getId, getIdPrefix, getKey, getPassword, getUsername, isEnabled, isLocal, isWholesale, setEnabled, setIdPrefix, setKey, setLocal, setPassword, setQueueName, setWholesale, toQueueName, toString, updateCash
-
-
-
-
Constructor Detail
-
DefaultBroker
public DefaultBroker(String username)
-
-
Method Detail
-
setService
public void setService(DefaultBrokerService service)
-
receiveMessage
public void receiveMessage(Object object)
Receives a message intended for the broker, forwards it to the message handler in the enclosing service.- Overrides:
receiveMessage
in classBroker
-
-