logist.plan
Class Action.Pickup

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

public static final class Action.Pickup
extends Action

A pickup of a task


Nested Class Summary
 
Nested classes/interfaces inherited from class logist.plan.Action
Action.Delivery, Action.Move, Action.Pickup
 
Constructor Summary
Action.Pickup(Task task)
          Creates a pickup 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.Pickup

public Action.Pickup(Task task)
Creates a pickup action

Parameters:
task - The task to pickup
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