Package org.powertac.visualizer.web.dto
Class InitMessage
java.lang.Object
org.powertac.visualizer.web.dto.InitMessage
public class InitMessage extends Object
An initial context message will be sent to clients who subscribe on a
Visualizer web channel. This happens when a user opens the Visualizer via
browser. The initial message contains data about the game context:
competition, brokers and customers along with corresponding IDs for each of
entities. The front-end is then able to associate future data based on those
IDs (and there is no need to transmit meta data about competition, brokers
and customers each time slot).
- Author:
- Jurica Babic, Govert Buijs, Erik Kemperman
-
Constructor Summary
Constructors Constructor Description InitMessage()InitMessage(VisualizerService.VisualizerState state, CompetitionService competition, List<Broker> brokers, List<Customer> customer, List<TickSnapshot> snaps) -
Method Summary
Modifier and Type Method Description List<Broker>getBrokers()CompetitionServicegetCompetition()List<Customer>getCustomers()List<TickSnapshot>getSnapshots()VisualizerService.VisualizerStategetState()voidsetBrokers(List<Broker> brokers)voidsetCompetition(CompetitionService competition)voidsetCustomers(List<Customer> customers)voidsetSnapshots(List<TickSnapshot> snapshots)voidsetState(VisualizerService.VisualizerState state)
-
Constructor Details
-
InitMessage
public InitMessage() -
InitMessage
public InitMessage(VisualizerService.VisualizerState state, CompetitionService competition, List<Broker> brokers, List<Customer> customer, List<TickSnapshot> snaps)
-
-
Method Details