de.hattrickorganizer.tools
Class HTCalendarFactory

java.lang.Object
  extended by de.hattrickorganizer.tools.HTCalendarFactory

public final class HTCalendarFactory
extends java.lang.Object

Factory for creating HTCalendar instances.

Author:
Boy van der Werf

Method Summary
static IHTCalendar createEconomyCalendar(IHOMiniModel model)
          Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.
static IHTCalendar createEconomyCalendar(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 IHTCalendar createGlobalCalendar()
          Creates a HTCalendar to calculate global (Swedish) values.
static IHTCalendar createGlobalCalendar(java.util.Date date)
          Creates a HTCalendar to calculate global (Swedish) values and presets it with he specified date a date.
static IHTCalendar createTrainingCalendar(IHOMiniModel model)
          Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.
static IHTCalendar createTrainingCalendar(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 IHTCalendar createEconomyCalendar(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 IHTCalendar createEconomyCalendar(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 IHTCalendar createGlobalCalendar()
Creates a HTCalendar to calculate global (Swedish) values.

Returns:
a HTCalendar.

createGlobalCalendar

public static IHTCalendar 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 IHTCalendar createTrainingCalendar(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 IHTCalendar createTrainingCalendar(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.