|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TaxiCommunicationListener
A listener to the TaxiCommunication interface. This makes an interface for the event communication from a taxi on the street to the system.
| Method Summary | |
|---|---|
void |
abortDrive(java.lang.String regnr,
int driveId)
A drive is aborted, either if it's a booked drive where the customer didn't show up or if it's a started drive where the customer ran away. |
void |
endedDrive(java.lang.String regnr,
int driveId,
double distance,
Position endpos,
java.util.Date startTime,
java.util.Date endTime,
double price,
PaymentMethod paymentMethod,
boolean isPayed)
Event is raised when a taxi has finished a drive. |
void |
loggedIn(java.lang.String regnr,
int driverId)
|
void |
loggedOut(java.lang.String regnr)
Event is sent when the taxi is parked. |
void |
startedBookedDrive(java.lang.String regnr,
int driveId,
Position startpos,
java.util.Date startTime)
A customer is picked up on the street and a prebookd drive is started. |
int |
startedNewDrive(java.lang.String regnr,
Route route,
java.util.Date startTime,
Customer customer,
int numPassangers)
Is ran when a taxi picks up a person on the street. |
| Method Detail |
|---|
void loggedIn(java.lang.String regnr,
int driverId)
void loggedOut(java.lang.String regnr)
regnr - Identify the car.
int startedNewDrive(java.lang.String regnr,
Route route,
java.util.Date startTime,
Customer customer,
int numPassangers)
regnr - Idenifiys the carstartpos - The position of the pickupstartTime - The real starttime for the pickup.customer - If it's a formely known customer this is set to that customer, or else it's null.
void startedBookedDrive(java.lang.String regnr,
int driveId,
Position startpos,
java.util.Date startTime)
regnr - Idenifiys the cardriveId - The booked drive's id.startpos - The position where it startedstartTime - The taxi time when it started.
void endedDrive(java.lang.String regnr,
int driveId,
double distance,
Position endpos,
java.util.Date startTime,
java.util.Date endTime,
double price,
PaymentMethod paymentMethod,
boolean isPayed)
regnr - Idenifiys the cardriveId - The id for the drivedistance - The distance that have been driven.endpos - The final position.driveTime - The time it tookprice - The price to pay (calculated by the taxameter)paymentMethod - The way of payment.isPayed - If it's payed or not.
void abortDrive(java.lang.String regnr,
int driveId)
regnr - Id to the car.driveId - The drive Id.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||