org.powertac.visualizer.beans
Class VisualizerBean

java.lang.Object
  extended by org.powertac.visualizer.beans.VisualizerBean
All Implemented Interfaces:
Serializable

@Service
public class VisualizerBean
extends Object
implements Serializable

Holds properties of the Visualizer such as number of received messages from the simulator, number of Visualizer runs etc.

Author:
Jurica Babic
See Also:
Serialized Form

Constructor Summary
VisualizerBean()
           
 
Method Summary
 org.powertac.common.Competition getCompetition()
           
 long getCurrentMillis()
           
 int getCurrentTimeslotSerialNumber()
           
 int getMessageCount()
           
 NominationPusher getNominationPusher()
           
 org.powertac.common.msg.TimeslotUpdate getOldTimeslotUpdate()
           
 String getSimulationStatus()
           
 org.powertac.common.msg.TimeslotComplete getTimeslotComplete()
           
 org.powertac.common.msg.TimeslotUpdate getTimeslotUpdate()
           
 Boolean getTournamentMode()
           
 int getVisualizerRunCount()
           
 WeatherPusher getWeatherPusher()
           
 void incrementMessageCounter()
           
 void init()
           
 boolean isFinished()
           
 boolean isRunning()
           
 void newRun()
          Configures visualizer bean for the new competition instance.
 void setCompetition(org.powertac.common.Competition competition)
           
 void setCurrentMillis(long currentMillis)
           
 void setCurrentTimeslotSerialNumber(int currentTimeslotSerialNumber)
           
 void setFinished(boolean finished)
           
 void setNominationPusher(NominationPusher nominationPusher)
           
 void setOldTimeslotUpdate(org.powertac.common.msg.TimeslotUpdate oldTimeslotUpdate)
           
 void setRunning(boolean running)
           
 void setSimulationStatus(String simulationStatus)
           
 void setTimeslotComplete(org.powertac.common.msg.TimeslotComplete timeslotComplete)
           
 void setTimeslotUpdate(org.powertac.common.msg.TimeslotUpdate timeslotUpdate)
           
 void setTournamentMode(Boolean tournamentMode)
           
 void setWeatherPusher(WeatherPusher weatherPusher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisualizerBean

public VisualizerBean()
Method Detail

incrementMessageCounter

public void incrementMessageCounter()

getMessageCount

public int getMessageCount()

newRun

public void newRun()
Configures visualizer bean for the new competition instance. Resets its properties and increments Visualizer counter.


init

public void init()

getNominationPusher

public NominationPusher getNominationPusher()

setNominationPusher

public void setNominationPusher(NominationPusher nominationPusher)

getVisualizerRunCount

public int getVisualizerRunCount()

getCompetition

public org.powertac.common.Competition getCompetition()

setCompetition

public void setCompetition(org.powertac.common.Competition competition)

getTimeslotUpdate

public org.powertac.common.msg.TimeslotUpdate getTimeslotUpdate()

setTimeslotUpdate

public void setTimeslotUpdate(org.powertac.common.msg.TimeslotUpdate timeslotUpdate)

getSimulationStatus

public String getSimulationStatus()

setSimulationStatus

public void setSimulationStatus(String simulationStatus)

getCurrentTimeslotSerialNumber

public int getCurrentTimeslotSerialNumber()

setCurrentTimeslotSerialNumber

public void setCurrentTimeslotSerialNumber(int currentTimeslotSerialNumber)

isFinished

public boolean isFinished()

setFinished

public void setFinished(boolean finished)

isRunning

public boolean isRunning()

setRunning

public void setRunning(boolean running)

getCurrentMillis

public long getCurrentMillis()

getWeatherPusher

public WeatherPusher getWeatherPusher()

setWeatherPusher

public void setWeatherPusher(WeatherPusher weatherPusher)

setCurrentMillis

public void setCurrentMillis(long currentMillis)

getOldTimeslotUpdate

public org.powertac.common.msg.TimeslotUpdate getOldTimeslotUpdate()

setOldTimeslotUpdate

public void setOldTimeslotUpdate(org.powertac.common.msg.TimeslotUpdate oldTimeslotUpdate)

getTournamentMode

public Boolean getTournamentMode()

setTournamentMode

public void setTournamentMode(Boolean tournamentMode)

getTimeslotComplete

public org.powertac.common.msg.TimeslotComplete getTimeslotComplete()

setTimeslotComplete

public void setTimeslotComplete(org.powertac.common.msg.TimeslotComplete timeslotComplete)


Copyright © 2013 Power TAC. All Rights Reserved.