ch.tatool.core.module.scheduler
Class AbstractModuleScheduler

java.lang.Object
  extended by ch.tatool.core.module.scheduler.AbstractModuleScheduler
All Implemented Interfaces:
ModuleScheduler
Direct Known Subclasses:
AlwaysAllowModuleScheduler, DailyModuleScheduler

public abstract class AbstractModuleScheduler
extends Object
implements ModuleScheduler

Abstract module scheduler. Implements module and dataservice properties.

Author:
Michael Ruflin

Nested Class Summary
 class AbstractModuleScheduler.ModuleSchedulerMessageImpl
           
 
Constructor Summary
AbstractModuleScheduler()
           
 
Method Summary
 DataService getDataService()
          Gets the ModuleDataService this scheduler is using.
 Module getModule()
          Gets the module this scheduler is used for.
 String getSchedulerLastSessionDate(Module module)
           
 String getSchedulerNumSessions(Module module)
           
 void setDataService(DataService dataService)
          Set the dataService it might need.
 void setModule(Module module)
          Set the module this scheduler should manage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.tatool.module.ModuleScheduler
getName, initialize, isSessionStartAllowed
 

Constructor Detail

AbstractModuleScheduler

public AbstractModuleScheduler()
Method Detail

setModule

public void setModule(Module module)
Set the module this scheduler should manage.

Specified by:
setModule in interface ModuleScheduler

setDataService

public void setDataService(DataService dataService)
Set the dataService it might need.

Specified by:
setDataService in interface ModuleScheduler

getModule

public Module getModule()
Gets the module this scheduler is used for.

Returns:
module

getDataService

public DataService getDataService()
Gets the ModuleDataService this scheduler is using.

Returns:
dataService

getSchedulerNumSessions

public String getSchedulerNumSessions(Module module)
Specified by:
getSchedulerNumSessions in interface ModuleScheduler

getSchedulerLastSessionDate

public String getSchedulerLastSessionDate(Module module)
Specified by:
getSchedulerLastSessionDate in interface ModuleScheduler


Copyright © 2012. All Rights Reserved.