TaxiProject05.register
Class Taxi

java.lang.Object
  extended by TaxiProject05.register.Taxi
All Implemented Interfaces:
java.io.Serializable

public class Taxi
extends java.lang.Object
implements java.io.Serializable

Author:
Group 5
See Also:
Serialized Form

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

Taxi

public Taxi(java.lang.String regNum,
            TaxiModel model,
            Address lastStop)
The constructor

Parameters:
regNum -
model -
lastStop -

Taxi

public Taxi(java.lang.String regNum,
            TaxiModel model)
The second constructor

Parameters:
regNum -
model -
Method Detail

getRegNum

public java.lang.String getRegNum()
Returns:
regNum The registration number

getModel

public TaxiModel getModel()
Returns:
model The model of the car

getLastStop

public Address getLastStop()
Returns:
lastStop The last stop the taxi made

setRegNum

public void setRegNum(java.lang.String regNum)
Sets the registration number

Parameters:
regNum -

setModel

public void setModel(TaxiModel model)
Sets the model of the car

Parameters:
model -

setLastStop

public void setLastStop(Address lastStop)
Sets the last stop the taxi made

Parameters:
lastStop -

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object