|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public static final int NUMBER_ARGUMENT_MAX
public static final FlightSystem fs
Method Detail |
public java.lang.String execute(java.lang.String[] arg) throws java.lang.Exception
arg
- The argument of the coresponding function
java.lang.Exception
- When an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |