org.powertac.visualizer.services.handlers
Class VisualizerHelperService

java.lang.Object
  extended by org.powertac.visualizer.services.handlers.VisualizerHelperService

@Service
public class VisualizerHelperService
extends Object


Constructor Summary
VisualizerHelperService()
           
 
Method Summary
 long getMillisForIndex(int index)
           
 int getSafetyTimeslotIndex()
           
 int getSafetyWholesaleTimeslotIndex()
           
 int getTimeslotIndex(org.joda.time.Instant time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisualizerHelperService

public VisualizerHelperService()
Method Detail

getMillisForIndex

public long getMillisForIndex(int index)

getTimeslotIndex

public int getTimeslotIndex(org.joda.time.Instant time)

getSafetyWholesaleTimeslotIndex

public int getSafetyWholesaleTimeslotIndex()
Returns:
returns a safe timeslot index for wholesale visualization purposes. It will return a timeslot index for which all wholesale trades have been made and thus will not be mutable.

getSafetyTimeslotIndex

public int getSafetyTimeslotIndex()


Copyright © 2013 Power TAC. All Rights Reserved.