taxisrus.implementation.scheduler_stuff
Class CabCommunicationTask

java.lang.Object
  |
  +--java.util.TimerTask
        |
        +--taxisrus.implementation.scheduler_stuff.CabCommunicationTask
All Implemented Interfaces:
Runnable

public class CabCommunicationTask
extends TimerTask


Constructor Summary
CabCommunicationTask(Scheduler scheduler_referance, Customer new_to_schedule, MapperInterface mapper_referance)
          Constructor.
 
Method Summary
 void run()
          Task run by Timer class.
 
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

CabCommunicationTask

public CabCommunicationTask(Scheduler scheduler_referance,
                            Customer new_to_schedule,
                            MapperInterface mapper_referance)
Constructor. The Scheduler passed is the main scheduler. The customer is the customer which needs to be scheduled.
Parameters:
Scheduler - - Main scheduler
Customer - - Customer being scheduled
Method Detail

run

public void run()
Task run by Timer class. This will communicate with cabs until one is found which is willing to take the customer.
Overrides:
run in class TimerTask


API documentation for build 958