|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--taxisrus.implementation.Cab
Cab object
| Field Summary | |
protected int |
_cabID
|
protected Customer |
_customer
|
protected Driver |
_driver
|
protected int |
_priority
|
protected int |
_zoneID
|
| Constructor Summary | |
Cab()
Constructor |
|
Cab(int cab_id,
int driver_id)
Constructor |
|
Cab(int id,
int priority,
int zone,
Driver driver)
Constructor |
|
| Method Summary | |
int |
getCabID()
returns the id number of the cab |
Customer |
getCustomer()
get the customer |
Driver |
getDriver()
get Driver |
int |
getDriverID()
get Driver ID |
int |
getPriority()
returns the priority of the cab |
int |
getZoneID()
get zone |
void |
setCustomer(Customer customer)
set the customer |
boolean |
setDriver(Driver driver)
set Driver |
void |
setPriority(int priority)
set the priority when you want to push the cab to the end of the list |
void |
setZone(int zone)
set zone |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int _priority
protected int _cabID
protected int _zoneID
protected Driver _driver
protected Customer _customer
| Constructor Detail |
public Cab()
public Cab(int cab_id,
int driver_id)
cab_id - driver_id -
public Cab(int id,
int priority,
int zone,
Driver driver)
id - is the cabID which identifies the cab| Method Detail |
public int getCabID()
public int getPriority()
public void setPriority(int priority)
new - priority for the cabpublic void setCustomer(Customer customer)
customer - objectpublic Customer getCustomer()
public int getZoneID()
public void setZone(int zone)
zone - #public Driver getDriver()
public int getDriverID()
public boolean setDriver(Driver driver)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||