logist.plan
Interface ActionHandler<T>

Type Parameters:
T - The type of the computation of the handler
All Known Implementing Classes:
PlanVerifier, VehicleImpl

public interface ActionHandler<T>

Computes a result after a pattern matching on actions.

Author:
Robin Steiger

Method Summary
 T deliver(Task task)
          A delivery pattern
 T moveTo(Topology.City city)
          A move pattern
 T pickup(Task task)
          A pickup pattern
 

Method Detail

moveTo

T moveTo(Topology.City city)
A move pattern

Parameters:
city - The target city

pickup

T pickup(Task task)
A pickup pattern

Parameters:
task - The task being picked up

deliver

T deliver(Task task)
A delivery pattern

Parameters:
task - The task being delivered