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
|
Method Summary |
void |
run()
Task run by Timer class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 schedulerCustomer - - Customer being scheduled
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