hoplugins.commons.utils
Class HTCalendarFactory

java.lang.Object
  extended byhoplugins.commons.utils.HTCalendarFactory

public final class HTCalendarFactory
extends java.lang.Object

Factory for creating HTCalendar instances.

Author:
Boy van der Werf

Method Summary
static HTCalendar createEconomyCalendar(plugins.IHOMiniModel model)
          Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.
static HTCalendar createEconomyCalendar(plugins.IHOMiniModel model, java.util.Date date)
          Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.
static HTCalendar createGlobalCalendar()
          Creates a HTCalendar to calculate global (Swedish) values.
static HTCalendar createGlobalCalendar(java.util.Date date)
          Creates a HTCalendar to calculate global (Swedish) values and presets it with he specified date a date.
static HTCalendar createTrainingCalendar(plugins.IHOMiniModel model)
          Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.
static HTCalendar createTrainingCalendar(plugins.IHOMiniModel model, java.util.Date date)
          Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createEconomyCalendar

public static HTCalendar createEconomyCalendar(plugins.IHOMiniModel model)
Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.

Parameters:
model - HO data model
Returns:
a HTCalendar.

createEconomyCalendar

public static HTCalendar createEconomyCalendar(plugins.IHOMiniModel model,
                                               java.util.Date date)
Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.

Parameters:
model - HO data model
date - Date to set the calendar
Returns:
a HTCalendar.

createGlobalCalendar

public static HTCalendar createGlobalCalendar()
Creates a HTCalendar to calculate global (Swedish) values.

Returns:
a HTCalendar.

createGlobalCalendar

public static HTCalendar createGlobalCalendar(java.util.Date date)
Creates a HTCalendar to calculate global (Swedish) values and presets it with he specified date a date.

Parameters:
date - Date to set the calendar
Returns:
a HTCalendar.

createTrainingCalendar

public static HTCalendar createTrainingCalendar(plugins.IHOMiniModel model)
Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.

Parameters:
model - HO data model
Returns:
a HTCalendar.

createTrainingCalendar

public static HTCalendar createTrainingCalendar(plugins.IHOMiniModel model,
                                                java.util.Date date)
Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.

Parameters:
model - HO data model
date - Date to set the calendar
Returns:
a HTCalendar.


Copyright © 2005 Hattrick Organizer Plugins Project. All Rights Reserved.