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