public interface BasePolicyCallback
| Modifier and Type | Method and Description |
|---|---|
BasePolicy.ReserveParam |
findReserveParam(Request msg,
List<Request.Proposal> proposals)
Compute the reservation parameter given the request message and a
set of proposals.
|
double |
getCurrentTime()
Get the current time
|
TrackModel |
getTrackMode() |
boolean |
hasReservation(int vin)
Check whether the vehicle currently has a reservation.
|
void |
sendComfirmMsg(int latestRequestId,
BasePolicy.ReserveParam reserveParam)
Send a confirm message
|
void |
sendRejectMsg(int vin,
int latestRequestId,
Reject.Reason reason)
Send a reject message
|
void sendComfirmMsg(int latestRequestId,
BasePolicy.ReserveParam reserveParam)
latestRequestId - the latest request id of the vehiclereserveParam - the reservation parametervoid sendRejectMsg(int vin,
int latestRequestId,
Reject.Reason reason)
vin - the VINlatestRequestId - the latest request id of the vehiclereason - the reason of rejectionBasePolicy.ReserveParam findReserveParam(Request msg, List<Request.Proposal> proposals)
msg - the request messageproposals - the set of proposalsdouble getCurrentTime()
boolean hasReservation(int vin)
vin - the VIN of the vehicleTrackModel getTrackMode()
Copyright © 2013. All rights reserved.