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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Broker>
getBrokers()
CompetitionService
getCompetition()
List<Customer>
getCustomers()
List<TickSnapshot>
getSnapshots()
VisualizerService.VisualizerState
getState()
void
setBrokers(List<Broker> brokers)
void
setCompetition(CompetitionService competition)
void
setCustomers(List<Customer> customers)
void
setSnapshots(List<TickSnapshot> snapshots)
void
setState(VisualizerService.VisualizerState state)
-
-
-
Constructor Detail
-
InitMessage
public InitMessage()
-
InitMessage
public InitMessage(VisualizerService.VisualizerState state, CompetitionService competition, List<Broker> brokers, List<Customer> customer, List<TickSnapshot> snaps)
-
-
Method Detail
-
getState
public VisualizerService.VisualizerState getState()
-
setState
public void setState(VisualizerService.VisualizerState state)
-
getSnapshots
public List<TickSnapshot> getSnapshots()
-
setSnapshots
public void setSnapshots(List<TickSnapshot> snapshots)
-
getCompetition
public CompetitionService getCompetition()
-
setCompetition
public void setCompetition(CompetitionService competition)
-
-