|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--taxisrus.implementation.CabConsole.CabConsoleImplementation
| Constructor Summary | |
CabConsoleImplementation(int cabID)
Creates a CabConsoleImplementation with given CabID |
|
CabConsoleImplementation(ModelRMIInterface model)
Creates a CabConsoleImplementation with given model |
|
| Method Summary | |
boolean |
AcceptOrReject(String customerInfo)
Send ride information from model to Cab Console |
void |
Cancel(String customerInfo)
Send a Cancelation message from model to Cab Console. |
void |
Change(String customerInfo)
Send a Change message from model to Cab Console. |
void |
ChangeCabStatus(int cabStatus)
Change Cab Status |
void |
ChangeLoginStatus(boolean logginStatus)
Change Login Status |
void |
ClearMeter()
Clear both mileage and amount in meter |
void |
doneCommunicating()
Function called when the cabbie makes and Accept/Reject decision |
double |
GetAmount()
Get total amount for the shift |
int |
GetCabStatus()
Get Cab Status |
boolean |
GetCreditApproval(String creditCardNum,
double chargedAmount)
Returns if credit approval went through |
double |
GetMeter()
Get meter mileage |
String |
GetOutgoingMessage()
Get the outgoing message |
void |
LoginCab(String cabID,
String driverID)
Sets CabID and DriverID after login |
static void |
main(String[] args)
|
protected String |
MakeIndividualGPSMsg()
Create individual GPS String for model registration |
void |
MakePickedUpMessage()
Creates a message to be sent to the model after picking up a customer |
void |
MakeUpdateMessage()
Creates the outgoing message to be sent to the model |
void |
SendPickedUpMessage()
Send message when assigned customer is picked up |
void |
SendUpdateMessage()
Send information to the model every time the cab status changes, with GPS,Credit Card, Cab ID, Status, Meter and current time. |
void |
StartMeter()
Start meter |
void |
StopMeter()
Stop meter |
void |
timedOut()
Function called when CabTimerThread fires. |
void |
UpdateGUI()
Update the display of the cab console GUI |
boolean |
VerifyInput(String cabID,
String driverID)
Verify input for Cab Id and Driver ID after login |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CabConsoleImplementation(int cabID)
int - cabIDpublic CabConsoleImplementation(ModelRMIInterface model)
ModelRMIInterface - model| Method Detail |
public void LoginCab(String cabID,
String driverID)
String - CabIDString - DriverIDpublic String GetOutgoingMessage()
public int GetCabStatus()
public void ChangeCabStatus(int cabStatus)
int - cab statuspublic void ChangeLoginStatus(boolean logginStatus)
boolean - logged in or notpublic void StartMeter()
public void StopMeter()
public void ClearMeter()
public double GetMeter()
public double GetAmount()
public boolean GetCreditApproval(String creditCardNum,
double chargedAmount)
public void UpdateGUI()
public boolean VerifyInput(String cabID,
String driverID)
public void Cancel(String customerInfo)
throws RemoteException
CabConsoleInterfaceCancel in interface CabConsoleInterfaceCabConsoleInterface.Cancel(String)
public void Change(String customerInfo)
throws RemoteException
CabConsoleInterfaceChange in interface CabConsoleInterfaceCabConsoleInterface.Change(String)
public boolean AcceptOrReject(String customerInfo)
throws RemoteException
CabConsoleInterfaceAcceptOrReject in interface CabConsoleInterfaceCabConsoleInterface.AcceptOrReject(String)public void SendPickedUpMessage()
public void SendUpdateMessage()
public void MakeUpdateMessage()
public void MakePickedUpMessage()
protected String MakeIndividualGPSMsg()
public static void main(String[] args)
public void timedOut()
public void doneCommunicating()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||