A B C D E F G H I L M N P Q R S T U _

A

Action - interface reservation.Action.
This class uniform the way to call each sub-class (Create, Reserve, Cancel, Lists, Identify) that processes the commands.
ArgumentIsValid(String[], int, int) - Static method in class reservation.system.functions.Functions
Verify the number of arguments of the command Verify invariants : - regex ^[A-Z][a-z]* - seat < dimension of the flight and > 0
accept(File) - Method in class reservation.system.panels.ExampleFileFilter
Return true if this file should be shown in the directory pane, false if it shouldn't.
action - Variable in class reservation.system.panels.Panels
Action requested
addExtension(String) - Method in class reservation.system.panels.ExampleFileFilter
Adds a filetype "dot" extension to filter against.
alert(Exception) - Static method in class reservation.CustomDialog
Open a new window to specify the produced error by the user.
alert(String) - Static method in class reservation.CustomDialog
Open a new dialog window to give more informations to the user.
arg - Variable in class reservation.system.functions.Functions
The list of argnument receive from the command

B

bookingNumberIsMask() - Method in class reservation.system.Profile
Return true if bookingNumber is masked

C

CANCEL - Static variable in class reservation.CustomDialog
Integer defining the command CANCEL.
CREATE - Static variable in class reservation.CustomDialog
Integer defining the command CREATE.
Cancel - class reservation.system.functions.Cancel.
This class hold Cancel structure.
Cancel() - Constructor for class reservation.system.functions.Cancel
 
CancelPanel - class reservation.system.panels.CancelPanel.
This class hold Cancel structure.
CancelPanel() - Constructor for class reservation.system.panels.CancelPanel
Creates new form CancelPanel
CheckBookingListNotEmpty() - Static method in class reservation.system.functions.Functions
Verify that one reservation has been made.
CheckFlightListNotEmpty() - Static method in class reservation.system.functions.Functions
Verify that at least one flight is created.
Command - class reservation.Command.
This class hold Command structure.
Command() - Constructor for class reservation.Command
Creates a new instance of Command
Command(BufferedReader, int) - Constructor for class reservation.Command
Take over the instruction written by the user and also if it want execute the command in Verbose Mode
Create - class reservation.system.functions.Create.
This class hold Create structure.
Create() - Constructor for class reservation.system.functions.Create
 
CreatePanel - class reservation.system.panels.CreatePanel.
This class hold Create structure.
CreatePanel() - Constructor for class reservation.system.panels.CreatePanel
Creates new form CreatePanel
CustomDialog - class reservation.CustomDialog.
This class hold CustomDialog structure.
CustomDialog() - Constructor for class reservation.CustomDialog
Create a new instance with the level of verbosity QUIET
CustomDialog(int) - Constructor for class reservation.CustomDialog
Create a new instance of CustomDialog
CustomDialog(CustomDialog, boolean, String, int) - Constructor for class reservation.CustomDialog
This method determine the number of element of the user's instruction and analyse the first element of this one.
cancel(int, Set) - Method in class reservation.system.FlightSystem
Method which allows to cancel one or more personName that have reserved.
cancel(int) - Method in class reservation.system.FlightSystem
Method which allows to cancel a group of persons which have the same bookingNumber.
checkInteger(String, int, int) - Static method in class reservation.system.functions.Functions
Verify invariants : - regex ^0*[1-9]+0* * - arg belongs to [min max]
clone() - Method in class reservation.system.Flight
Creates and returns a copy of this object.
clone() - Method in class reservation.system.Person
Creates and returns a copy of this object.
clone() - Method in class reservation.system.Pos
Creates and returns a copy of this object.
create(String, short, short) - Method in class reservation.system.FlightSystem
Method which allows to add a new flight in a database.
create(Flight) - Method in class reservation.system.FlightSystem
Assert a new flight into the FlightList

D

DEBUG - Static variable in interface reservation.Mode
Integer defining the DEBUG level of verbosity.
doLayout() - Method in class reservation.system.panels.CancelPanel
Causes this container to lay out its components.
doLayout() - Method in class reservation.system.panels.CreatePanel
Causes this container to lay out its components.
doLayout() - Method in class reservation.system.panels.FlightsPanel
Causes this container to lay out its components.
doLayout() - Method in class reservation.system.panels.MainPanel
Causes this container to lay out its components.
doLayout() - Method in class reservation.system.panels.ReservePanel
Causes this container to lay out its components.
doLayout() - Method in class reservation.system.panels.SelectPanel
Causes this container to lay out its components.

E

ExampleFileFilter - class reservation.system.panels.ExampleFileFilter.
A convenience implementation of FileFilter that filters out all files except for those type extensions that it knows about.
ExampleFileFilter() - Constructor for class reservation.system.panels.ExampleFileFilter
Creates a file filter.
ExampleFileFilter(String) - Constructor for class reservation.system.panels.ExampleFileFilter
Creates a file filter that accepts files with the given extension.
ExampleFileFilter(String, String) - Constructor for class reservation.system.panels.ExampleFileFilter
Creates a file filter that accepts the given file type.
ExampleFileFilter(String[]) - Constructor for class reservation.system.panels.ExampleFileFilter
Creates a file filter from the given string array.
ExampleFileFilter(String[], String) - Constructor for class reservation.system.panels.ExampleFileFilter
Creates a file filter from the given string array and description.
equals(Object) - Method in class reservation.system.Flight
Overide equals
equals(Object) - Method in class reservation.system.Person
Overide equals
equals(Object) - Method in class reservation.system.Pos
Overide equals
equals(Object) - Method in class reservation.system.Profile
Overide equals return true if for all fields: person.field. == profile.field || profile.fieldIsMask Where the fields to test are: the name, the flight, the booking number, the seat.
execute(String[]) - Method in interface reservation.Action
Proceed the execution of the action
execute() - Method in class reservation.system.functions.Cancel
Cancel several person or a whole of person if the command cancel and their arguments are correct.
execute() - Method in class reservation.system.functions.Create
Create a new flight in a database if the command create and their arguments are correct.
execute() - Method in class reservation.system.functions.Flights
Display the list of the flights that are created if the command flights is correct.
execute() - Method in class reservation.system.functions.Functions
Proceed the execution of the request
execute(String[]) - Method in class reservation.system.functions.Functions
Process the array of argument
execute() - Method in class reservation.system.functions.Identify
Display the list of the persons who have got the bookingNumber written by the user if the command identify and their arguments are correct.
execute() - Method in class reservation.system.functions.Lists
Display the list of the persons who are registered in one flight if the command list and their arguments are correct.
execute() - Method in class reservation.system.functions.Reload
Reload the data previous stored in a file.
execute() - Method in class reservation.system.functions.Reserve
Reserve several one or many person in one flight if the command reservation and their arguments are correct.
execute() - Method in class reservation.system.functions.Store
Store in a file the data contained in the database.
execute() - Method in class reservation.system.functions.Store_alternatif
Store in a file the different command generating the content of the database.
execute(String[]) - Method in class reservation.system.panels.CancelPanel
Proceed the execution of the action
execute(String[]) - Method in class reservation.system.panels.CreatePanel
Proceed the execution of the action
execute(String[]) - Method in class reservation.system.panels.FlightsPanel
Proceed the execution of the action
execute(String[]) - Method in class reservation.system.panels.MainPanel
Proceed the execution of the action
execute(String[]) - Method in class reservation.system.panels.Panels
Proceed the execution of the action
execute(String[]) - Method in class reservation.system.panels.ReservePanel
Proceed the execution of the action
execute(String[]) - Method in class reservation.system.panels.SelectPanel
Proceed the execution of the action

F

FLIGHTS - Static variable in class reservation.CustomDialog
Integer defining the command FLIGHTS.
Flight - class reservation.system.Flight.
This class hold fligth structure.
Flight(String, Pos) - Constructor for class reservation.system.Flight
Construct a Flight named flightName with the size dimension
FlightSystem - class reservation.system.FlightSystem.
The class hold the structure to access in the database.
Flights - class reservation.system.functions.Flights.
This class hold Flights structure.
Flights() - Constructor for class reservation.system.functions.Flights
 
FlightsPanel - class reservation.system.panels.FlightsPanel.
This class hold Flight structure.
FlightsPanel() - Constructor for class reservation.system.panels.FlightsPanel
Creates new form FlightsPanel
Functions - class reservation.system.functions.Functions.
This class uniform the way to call each sub-class (Create, Reserve, Cancel, Lists, Identify) that processes the commands.
Functions() - Constructor for class reservation.system.functions.Functions
 
flightIsMask() - Method in class reservation.system.Profile
Return true if flight is masked
fs - Static variable in interface reservation.Action
The instance of the Flight System

G

getBookingList() - Method in class reservation.system.FlightSystem
Method which allows to return the list of the atribuated bookingNumber.
getBookingNumber() - Method in class reservation.system.Person
Return the booking number
getBookingNumberMax() - Method in class reservation.system.FlightSystem
Accessor for the bookingNumberMax
getCol() - Method in class reservation.system.Pos
Return The length of a row for a Flight and the col of the seat for a Person.
getDescription() - Method in class reservation.system.panels.ExampleFileFilter
Returns the human readable description of this filter.
getDimension() - Method in class reservation.system.Flight
Return the dimension (Rows and row length) of the flight
getExtension(File) - Method in class reservation.system.panels.ExampleFileFilter
Return the extension portion of the file's name .
getFlight() - Method in class reservation.system.Person
Return the flight
getFlightList() - Method in class reservation.system.FlightSystem
Method which allows to return the flights contained in the flights' list.
getFlightName() - Method in class reservation.system.Flight
Return the name of the fligth
getInstance() - Static method in class reservation.system.FlightSystem
Constructor of the class FlightSystem.
getMinimumSize() - Method in class reservation.system.panels.CancelPanel
Set the size of the panel
getMinimumSize() - Method in class reservation.system.panels.CreatePanel
Set the size of the panel
getMinimumSize() - Method in class reservation.system.panels.FlightsPanel
Set the size of the panel
getMinimumSize() - Method in class reservation.system.panels.MainPanel
Set the size of the panel
getMinimumSize() - Method in class reservation.system.panels.ReservePanel
Set the size of the panel
getMinimumSize() - Method in class reservation.system.panels.SelectPanel
Set the size of the panel
getPersonName() - Method in class reservation.system.Person
Return the name of the person
getPos() - Method in class reservation.system.Person
Return the position of the seat
getPreferredSize() - Method in class reservation.system.panels.CancelPanel
Set the size of the panel
getPreferredSize() - Method in class reservation.system.panels.CreatePanel
Set the size of the panel
getPreferredSize() - Method in class reservation.system.panels.FlightsPanel
Set the size of the panel
getPreferredSize() - Method in class reservation.system.panels.MainPanel
Set the size of the panel
getPreferredSize() - Method in class reservation.system.panels.ReservePanel
Set the size of the panel
getPreferredSize() - Method in class reservation.system.panels.SelectPanel
Set the size of the panel
getRetValue() - Method in class reservation.CustomDialog
This method allows to access the private string retValue.
getRow() - Method in class reservation.system.Pos
Return The number of rows for a Flight and the row of the seat for a Person.

H

HIGH - Static variable in interface reservation.Mode
Integer defining the HIGH level of verbosity.

I

Identify - class reservation.system.functions.Identify.
This class hold Lists structure.
Identify() - Constructor for class reservation.system.functions.Identify
 
identify(int) - Method in class reservation.system.FlightSystem
Method which allows to see the personName which have the same bookingNumber.
init() - Method in class reservation.system.panels.CancelPanel
Initialize the number of the field and fill them with default values.
init() - Method in class reservation.system.panels.CreatePanel
Initialize the number of the field and fill them with default values.
init() - Method in class reservation.system.panels.FlightsPanel
Initialize the number of the field and fill them with default values.
init() - Method in class reservation.system.panels.MainPanel
Initialize the number of the field and fill them with default values.
init() - Method in class reservation.system.panels.Panels
Initialise the dialogs´field
init() - Method in class reservation.system.panels.ReservePanel
Initialize the number of the field and fill them with default values.
init() - Method in class reservation.system.panels.SelectPanel
Initialize the number of the field and fill them with default values.
isExtensionListInDescription() - Method in class reservation.system.panels.ExampleFileFilter
Returns whether the extension list (.jpg, .gif, etc) should show up in the human readable description.

L

Lists - class reservation.system.functions.Lists.
This class hold Lists structure.
Lists() - Constructor for class reservation.system.functions.Lists
 
list(String) - Method in class reservation.system.FlightSystem
Method which allows to see the personName present in a same flight.

M

MainPanel - class reservation.system.panels.MainPanel.
Create the object MainPanel.
MainPanel() - Constructor for class reservation.system.panels.MainPanel
Creates new form MainPanel
MainPanel(CustomDialog) - Constructor for class reservation.system.panels.MainPanel
Constructor of this class.
Mode - interface reservation.Mode.
This interface uniform the way to call each sub-class.

N

NORMAL - Static variable in interface reservation.Mode
Integer defining the NORMAL level of verbosity.
NUMBER_ARGUMENT_MAX - Static variable in interface reservation.Action
Maximal number of argument for the command mode

P

Panels - class reservation.system.panels.Panels.
This class uniform the way to call each sub-class (CreatePanel, ReservePanel, CancelPanel, Panel) that processes the commands.
Panels() - Constructor for class reservation.system.panels.Panels
Instantiate a new Panel
Person - class reservation.system.Person.
This class hold person structure.
Person() - Constructor for class reservation.system.Person
Construct an empty person
Person(String, Flight, int, Pos) - Constructor for class reservation.system.Person
Construct a Person named personName booked on the flight the seat pos and has the booking number : bookingNumber.
Pos - class reservation.system.Pos.
This class hold Pos structure.
Pos(short, short) - Constructor for class reservation.system.Pos
Construct a Pos object.
Profile - class reservation.system.Profile.
The overall idea of this class is to provide a method of comparison between a person and an incomplete Person structure.
Profile() - Constructor for class reservation.system.Profile
Construct an empty profile
personNameIsMask() - Method in class reservation.system.Profile
Return true if personName is masked
posIsMask() - Method in class reservation.system.Profile
Return true if pos is masked
process() - Method in class reservation.Command
This method determine the number of element of the user's instruction and analyse the first element of this one.
process() - Method in class reservation.CustomDialog
This method create a new dialog window according to the selected command.
process() - Method in interface reservation.Mode
Open the dialog mode

Q

QUIET - Static variable in interface reservation.Mode
Integer defining the QUIET level of verbosity.
quit() - Method in class reservation.CustomDialog
Hide the dialog

R

READ_COMMAND - Static variable in class reservation.CustomDialog
Integer defining the command READ_COMMAND.
RELOAD - Static variable in class reservation.CustomDialog
Integer defining the command RELOAD.
RESERVE - Static variable in class reservation.CustomDialog
Integer defining the command RESERVE.
ROWS_MAX - Static variable in class reservation.system.Flight
The maximum number of rows in a flight
ROW_LENGTH_MAX - Static variable in class reservation.system.Flight
The maximum number of length of each row in a flight
ReadComand() - Static method in class reservation.system.panels.MainPanel
Open a file selector dialog and read interprete the Request Comand Message that are contained
Reload - class reservation.system.functions.Reload.
This class hold Reload structure.
Reload() - Constructor for class reservation.system.functions.Reload
 
Reload() - Static method in class reservation.system.panels.MainPanel
Open a file selector dialog and deserialize the containing Flight System
Reserve - class reservation.system.functions.Reserve.
This class hold Reserve structure.
Reserve() - Constructor for class reservation.system.functions.Reserve
 
ReservePanel - class reservation.system.panels.ReservePanel.
This class hold Reserve structure.
ReservePanel() - Constructor for class reservation.system.panels.ReservePanel
Creates new form ReservePanel
reservation - package reservation
 
reservation.system - package reservation.system
 
reservation.system.functions - package reservation.system.functions
 
reservation.system.panels - package reservation.system.panels
 
reserve(String, Set) - Method in class reservation.system.FlightSystem
Method which allows to add one or more persons in a database.
reserve(Person) - Method in class reservation.system.FlightSystem
Method which allows to add one person to a database.

S

SELECT - Static variable in class reservation.CustomDialog
Integer defining the command SELECT.
STORE - Static variable in class reservation.CustomDialog
Integer defining the command STORE.
SelectPanel - class reservation.system.panels.SelectPanel.
This class hold Select structure.
SelectPanel() - Constructor for class reservation.system.panels.SelectPanel
Creates new form SelectPanel
Store - class reservation.system.functions.Store.
This class hold Create structure.
Store() - Constructor for class reservation.system.functions.Store
 
Store() - Static method in class reservation.system.panels.MainPanel
Open a file selector dialog and store the serialzed Flight System
Store_alternatif - class reservation.system.functions.Store_alternatif.
This class hold Store structure.
Store_alternatif() - Constructor for class reservation.system.functions.Store_alternatif
 
search(Profile) - Method in class reservation.system.FlightSystem
Method which allows to search a person in the person's list.
selectFlight(String) - Method in class reservation.system.FlightSystem
Method which allows to select a flight in the flight's list according to the flightName.
setBookingNumber(int) - Method in class reservation.system.Person
Set the booking number
setBookingNumber(int) - Method in class reservation.system.Profile
Set the booking number and unmask the value
setDescription(String) - Method in class reservation.system.panels.ExampleFileFilter
Sets the human readable description of this filter.
setExtensionListInDescription(boolean) - Method in class reservation.system.panels.ExampleFileFilter
Determines whether the extension list (.jpg, .gif, etc) should show up in the human readable description.
setFlight(Flight) - Method in class reservation.system.Person
Set the flight
setFlight(Flight) - Method in class reservation.system.Profile
Set the flight and unmask the value
setPersonName(String) - Method in class reservation.system.Person
Set the name of the person
setPersonName(String) - Method in class reservation.system.Profile
Set the name of the person and unmask the value
setPos(Pos) - Method in class reservation.system.Person
Set the position
setPos(Pos) - Method in class reservation.system.Profile
Set the position and unmask the value

T

toString() - Method in class reservation.system.Flight
Returns a string representation of this Flight object.
toString() - Method in class reservation.system.FlightSystem
Returns a string representation of this FlightSystem object.
toString() - Method in class reservation.system.Person
Returns a string representation of this Person object.
toString() - Method in class reservation.system.Pos
Returns a string representation of this Flight object.
toString() - Method in class reservation.system.Profile
Returns a string representation of this Flight object.

U

usage() - Static method in class reservation.system.functions.Cancel
Display the usage for the command cancel.
usage() - Static method in class reservation.system.functions.Create
Display the usage for the command create.
usage() - Static method in class reservation.system.functions.Flights
Display the usage for the command flights.
usage() - Static method in class reservation.system.functions.Functions
Display the usage for the command (details the different arguments, his type...).
usage() - Static method in class reservation.system.functions.Identify
Display the usage for the command identify.
usage() - Static method in class reservation.system.functions.Lists
Display the usage for the command list.
usage() - Static method in class reservation.system.functions.Reload
Display the usage for the command reload.
usage() - Static method in class reservation.system.functions.Reserve
Display the usage for the command reserve.
usage() - Static method in class reservation.system.functions.Store
Display the usage for the command reload.
usage() - Static method in class reservation.system.functions.Store_alternatif
Display the usage for the command Save.

_

_check() - Method in class reservation.system.Flight
Verify invariants : - regex [[A-Z]*[a-z]*[0-9]*]+
- dimension < (ROWS_MAX,ROWS_LENGHT_MAX) and > 0
_check() - Method in class reservation.system.Person
Verify invariants : - regex ^[A-Z][a-z]* - seat < dimension of the flight and > 0
_check() - Method in class reservation.system.Pos
Verify invariants : - dimension > 0
_check() - Method in class reservation.system.Profile
Verify invariants : - either the mask is true or the object = null
_check(String[]) - Method in class reservation.system.functions.Cancel
Verify that at least one flight is created and also one reservation has been made.
_check(String[]) - Method in class reservation.system.functions.Create
Verify invariants : - Arguments not null - rows belongs to [1 Flight.ROWS_MAX] - rowsLength belongs to [1 Flight.ROW_LENGTH_MAX]
_check(String[]) - Method in class reservation.system.functions.Flights
Verify that at least one flight is created.
_check(String[]) - Method in class reservation.system.functions.Functions
Check if the arguments are correct and can be executed
_check(String[]) - Method in class reservation.system.functions.Identify
Verify that at least one flight is created and also one reservation has been made.
_check(String[]) - Method in class reservation.system.functions.Lists
Verify that at least one flight is created and also one reservation has been made.
_check(String[]) - Method in class reservation.system.functions.Reload
Verify invariants : - Argument not null - The number of argument equals 1 - File's name exists - The file can be read
_check(String[]) - Method in class reservation.system.functions.Reserve
Verify that at least one flight is created.
_check(String[]) - Method in class reservation.system.functions.Store
Verify invariants : - Argument not null - The number of argument equals 1 - File's name doesn't exist - The file can be created
_check(String[]) - Method in class reservation.system.functions.Store_alternatif
Verify invariants : - Argument not null - The number of argument equals 1 - File's name doesn't exist - The file can be created

A B C D E F G H I L M N P Q R S T U _