|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BasePolicyCallback
The base policy's callback interface.
Method Summary | |
---|---|
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 |
Method Detail |
---|
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 proposals
double getCurrentTime()
boolean hasReservation(int vin)
vin
- the VIN of the vehicle
TrackModel getTrackMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |