reservation
Interface Action

All Known Implementing Classes:
Functions, Panels

public interface Action

This class uniform the way to call each sub-class (Create, Reserve, Cancel, Lists, Identify) that processes the commands. It delegates to the sub-class the implementation of the function execute (), usage () and check (). Also it masks the machinery and helps the developer who want to reuse the program.

Author:
Texier Mathieu and Frederic Bidon

Field Summary
static FlightSystem fs
          The instance of the Flight System
static int NUMBER_ARGUMENT_MAX
          Maximal number of argument for the command mode
 
Method Summary
 java.lang.String execute(java.lang.String[] arg)
          Proceed the execution of the action
 

Field Detail

NUMBER_ARGUMENT_MAX

public static final int NUMBER_ARGUMENT_MAX
Maximal number of argument for the command mode

See Also:
Constant Field Values

fs

public static final FlightSystem fs
The instance of the Flight System

Method Detail

execute

public java.lang.String execute(java.lang.String[] arg)
                         throws java.lang.Exception
Proceed the execution of the action

Parameters:
arg - The argument of the coresponding function
Returns:
The apropriate string message
Throws:
java.lang.Exception - When an error occurs