logist.plan
Class Action.Delivery

java.lang.Object
  extended by logist.plan.Action
      extended by logist.plan.Action.Delivery
Enclosing class:
Action

public static final class Action.Delivery
extends Action

A delivery of a task


Nested Class Summary
 
Nested classes/interfaces inherited from class logist.plan.Action
Action.Delivery, Action.Move, Action.Pickup
 
Constructor Summary
Action.Delivery(Task task)
          Creates a delivery action
 
Method Summary
<T> T
accept(ActionHandler<T> handler)
          Performs a pattern matching on the type of task.
 java.lang.String toLongString()
          Shows tasks with full details rather than just the id.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Action.Delivery

public Action.Delivery(Task task)
Creates a delivery action

Parameters:
task - The task to deliver
Method Detail

accept

public <T> T accept(ActionHandler<T> handler)
Description copied from class: Action
Performs a pattern matching on the type of task.

Specified by:
accept in class Action
Type Parameters:
T - the type of the value produced by the handler
Parameters:
handler - the handler for each pattern
Returns:
the result of the handler

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toLongString

public java.lang.String toLongString()
Description copied from class: Action
Shows tasks with full details rather than just the id.

Specified by:
toLongString in class Action