|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectTaxiProject05.register.Taxi
public class Taxi
| Constructor Summary | |
|---|---|
Taxi(java.lang.String regNum,
TaxiModel model)
The second constructor |
|
Taxi(java.lang.String regNum,
TaxiModel model,
Address lastStop)
The constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
Address |
getLastStop()
|
TaxiModel |
getModel()
|
java.lang.String |
getRegNum()
|
void |
setLastStop(Address lastStop)
Sets the last stop the taxi made |
void |
setModel(TaxiModel model)
Sets the model of the car |
void |
setRegNum(java.lang.String regNum)
Sets the registration number |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Taxi(java.lang.String regNum,
TaxiModel model,
Address lastStop)
regNum - model - lastStop -
public Taxi(java.lang.String regNum,
TaxiModel model)
regNum - model - | Method Detail |
|---|
public java.lang.String getRegNum()
public TaxiModel getModel()
public Address getLastStop()
public void setRegNum(java.lang.String regNum)
regNum - public void setModel(TaxiModel model)
model - public void setLastStop(Address lastStop)
lastStop - public boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||