Helper class for the IteratedAuctionAssignmentInitiator to handle and store the state of received bids and winner responses.
More...
#include <auction_initiator_state.h>
|
struct | Winner |
| Helper struct to store information needed to send WinnerNotifications. More...
|
|
|
| AuctionInitiatorState (std::shared_ptr< LayeredPrecedenceGraph > layered_precedence_graph) |
|
void | countBidSubmissionProcessing () |
| Counting how many times bid submissions were successful or not. Throwing an exception if there were no bid submissions too many times.
|
|
std::vector< Winner > | selectWinner () const |
| Calculating winners for the different ability groups based on received bids.
|
|
void | countWinnerResponseProcessing () |
| Counting how many times winner responses were successful or not. Throwing an exception if there were no bid submissions too many times.
|
|
std::vector< daisi::material_flow::Task > | processWinnerAcceptions () |
| Processing each successful winner response and removing related bids.
|
|
void | addBidSubmission (const BidSubmission &bid_submission) |
| Adding a received BidSubmission message to the internal state.
|
|
void | addWinnerResponse (const WinnerResponse &winner_response) |
| Adding a received WinnerResponse message to the internal state if it was successful.
|
|
void | clearIterationInfo () |
| Clearing all information from the internal state.
|
|
void | clearWinnerAcceptions () |
| Clearing winner acceptions from the internal state.
|
|
Helper class for the IteratedAuctionAssignmentInitiator to handle and store the state of received bids and winner responses.
◆ addBidSubmission()
void daisi::cpps::logical::AuctionInitiatorState::addBidSubmission |
( |
const BidSubmission & |
bid_submission | ) |
|
Adding a received BidSubmission message to the internal state.
- Parameters
-
bid_submission | Received message |
◆ addWinnerResponse()
void daisi::cpps::logical::AuctionInitiatorState::addWinnerResponse |
( |
const WinnerResponse & |
winner_response | ) |
|
Adding a received WinnerResponse message to the internal state if it was successful.
- Parameters
-
winner_response | Received message |
◆ processWinnerAcceptions()
Processing each successful winner response and removing related bids.
- Returns
- Tasks that got auctioned and can be set to scheduled.
◆ selectWinner()
Calculating winners for the different ability groups based on received bids.
- Returns
- Vector of winners with information to send WinnerNotifications.
The documentation for this class was generated from the following files:
- daisi/src/cpps/logical/algorithms/assignment/auction_initiator_state.h
- daisi/src/cpps/logical/algorithms/assignment/auction_initiator_state.cpp