|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gscg.common.interactionlayer.timecontrol.GlobalRowOrColumnNumber
The RowOrColumnNumber calculates the row or column which should be selected according to the time in the simulation. Implementing row or column control in this way makes sure that not every actor in a game is going to perform this expensive code every time for itself, instead we use a 'global' approach, and thus increase our performance.
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.
Nested Class Summary | |
static class |
GlobalRowOrColumnNumber.CustomEventProducer
A custom implementation of an event producer. |
Field Summary | |
static nl.tudelft.simulation.event.EventType |
TOTAL_NUMBER_OF_DAYS
fired to indicate the total number of days in the simulation |
static nl.tudelft.simulation.event.EventType |
UPDATE_CURRENT_DATE
fired when the date in the game has changed |
static nl.tudelft.simulation.event.EventType |
UPDATE_CURRENT_DATES
fired when the all the columns and rows must be updated according to the simulation time |
static nl.tudelft.simulation.event.EventType |
UPDATE_CURRENT_DAY
fired when the current row or column must be updated according to the simulation time |
static nl.tudelft.simulation.event.EventType |
UPDATE_CURRENT_MONTH
fired when the current row or column must be updated according to the simulation time |
static nl.tudelft.simulation.event.EventType |
UPDATE_CURRENT_WEEK
fired when the current row or column must be updated according to the simulation time |
Constructor Summary | |
GlobalRowOrColumnNumber(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
constructs a new GlobalRowOrColumnNumber |
Method Summary | |
static int |
getCurrentNumberDay()
|
static int |
getCurrentNumberMonth()
|
static int |
getCurrentNumberWeek()
|
GlobalRowOrColumnNumber.CustomEventProducer |
getCustomEventProducer()
|
static java.util.ArrayList |
getDayHeaderValues()
|
static java.util.HashMap |
getDayNumberTableRowNumber()
|
static GlobalRowOrColumnNumber |
getGlobalRowOrColumnNumber()
|
static java.util.ArrayList |
getMonthHeaderValues()
|
static java.util.HashMap |
getMonthNumberTableRowNumber()
|
static int |
getNumberOfDays()
|
static java.util.Calendar |
getProgressCalendar()
|
static long |
getStartTime()
|
static java.util.ArrayList |
getWeekHeaderValues()
|
static java.util.HashMap |
getWeekNumberTableRowNumber()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final nl.tudelft.simulation.event.EventType UPDATE_CURRENT_DAY
public static final nl.tudelft.simulation.event.EventType UPDATE_CURRENT_WEEK
public static final nl.tudelft.simulation.event.EventType UPDATE_CURRENT_MONTH
public static final nl.tudelft.simulation.event.EventType UPDATE_CURRENT_DATE
public static final nl.tudelft.simulation.event.EventType UPDATE_CURRENT_DATES
public static final nl.tudelft.simulation.event.EventType TOTAL_NUMBER_OF_DAYS
Constructor Detail |
public GlobalRowOrColumnNumber(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
simulator
- the simulatorMethod Detail |
public static int getCurrentNumberDay()
public static int getCurrentNumberMonth()
public static int getCurrentNumberWeek()
public static java.util.ArrayList getDayHeaderValues()
public static java.util.ArrayList getWeekHeaderValues()
public static java.util.ArrayList getMonthHeaderValues()
public static GlobalRowOrColumnNumber getGlobalRowOrColumnNumber()
public static java.util.HashMap getDayNumberTableRowNumber()
public static java.util.HashMap getWeekNumberTableRowNumber()
public static java.util.HashMap getMonthNumberTableRowNumber()
public static int getNumberOfDays()
public static java.util.Calendar getProgressCalendar()
public static long getStartTime()
public GlobalRowOrColumnNumber.CustomEventProducer getCustomEventProducer()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |