nl.pbemengine.engine.ng.base
Class ProcessorTask

java.lang.Object
  extended by java.util.TimerTask
      extended by nl.pbemengine.engine.ng.base.ProcessorTask
All Implemented Interfaces:
java.lang.Runnable

public class ProcessorTask
extends java.util.TimerTask

TimerTask to process user commands at a set time

Author:
Jeroen Steenbeeke

Constructor Summary
ProcessorTask(Ruleset ruleset, int game_id, CheckerTask checkTask)
          Create a new ProcessorTask for the indicated game, running on the indicated rules, associated with the given CheckerTask
 
Method Summary
 void run()
           
 void setSender(MailSender sender)
          Sets the MailSender instance this task can use to send e-mail
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessorTask

public ProcessorTask(Ruleset ruleset,
                     int game_id,
                     CheckerTask checkTask)
Create a new ProcessorTask for the indicated game, running on the indicated rules, associated with the given CheckerTask

Parameters:
ruleset - The rules of the game this processor handles
game_id - The ID of the game this processor is running
checkTask - The associated CheckerTask that fetches mail for this game
Method Detail

setSender

public void setSender(MailSender sender)
Sets the MailSender instance this task can use to send e-mail

Parameters:
sender - A MailSender object

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask


Copyright © 2008. All Rights Reserved.