All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JBMSTours.CustomerData

java.lang.Object
   |
   +----JBMSTours.CustomerData

public class CustomerData
extends Object
This class initializes a hash table of people and group data. The main application gets the data out of this class instead of from a user. A real application would get it from a user. The pre-built version of the database uses values 80 and over. Otherwise, BuildATour uses values 1-79.


Constructor Index

 o CustomerData()
 o CustomerData(boolean)

Method Index

 o getAddress()
Gets the String address of group out of hash table.
 o getBudget()
Gets the double budget of group out of hash table.
 o getChild(int)
Gets the Child object out of hash table.
 o getCity1ID()
Gets the id of the group's home city out of hash table.
 o getCity2ID()
Gets the id of the group's first city out of hash table.
 o getCity3ID()
Gets the id of the group's second city out of hash table.
 o getDay1()
Gets the int representing the group's first travel date out of hash table.
 o getDay2()
Gets the int representing the group's second travel date out of hash table.
 o getDay3()
Gets the int representing the group's third travel date out of hash table.
 o getLevel()
Gets the String level of group out of hash table.
 o getPhone()
Gets the String phone number of group out of hash table.
 o getPrimaryAdult()
Gets the main Adult object out of hash table.
 o getSecondaryAdult()
Gets the secondary Adult object out of hash table.
 o setKeyStart(int)
gets the starting key value (0 or 80, depending on the mode, plus the incrementation for the number of groups already stored)

Constructors

 o CustomerData
 public CustomerData()
 o CustomerData
 public CustomerData(boolean prebuild)

Methods

 o getPrimaryAdult
 public Adult getPrimaryAdult()
Gets the main Adult object out of hash table.

Parameters:
int - integer of the next available id for the main person
Returns:
Adult
 o getSecondaryAdult
 public Adult getSecondaryAdult()
Gets the secondary Adult object out of hash table.

Parameters:
int - integer of the next available id for the main person
Returns:
Adult
 o getChild
 public Child getChild(int pid)
Gets the Child object out of hash table.

Parameters:
int - integer of the next available id for the main person
Returns:
Adult
 o getCity1ID
 public int getCity1ID()
Gets the id of the group's home city out of hash table.

Returns:
int
 o getCity2ID
 public int getCity2ID()
Gets the id of the group's first city out of hash table.

Returns:
int
 o getCity3ID
 public int getCity3ID()
Gets the id of the group's second city out of hash table.

Returns:
int
 o getDay1
 public int getDay1()
Gets the int representing the group's first travel date out of hash table.

Returns:
int
 o getDay2
 public int getDay2()
Gets the int representing the group's second travel date out of hash table.

Returns:
int
 o getDay3
 public int getDay3()
Gets the int representing the group's third travel date out of hash table.

Returns:
int
 o getAddress
 public String getAddress()
Gets the String address of group out of hash table.

Returns:
String
 o getPhone
 public String getPhone()
Gets the String phone number of group out of hash table.

Returns:
String
 o getLevel
 public String getLevel()
Gets the String level of group out of hash table.

Returns:
String
 o getBudget
 public double getBudget()
Gets the double budget of group out of hash table.

Returns:
double
 o setKeyStart
 public void setKeyStart(int i)
gets the starting key value (0 or 80, depending on the mode, plus the incrementation for the number of groups already stored)


All Packages  Class Hierarchy  This Package  Previous  Next  Index