![]() |
CYCLUS
|
A Bid encapsulates all the information required to communicate a bid response to a request for a resource, including the resource bid and the bidder.
#include <bid.h>
Public Member Functions | |
| Trader * | bidder () const |
| bool | exclusive () const |
| boost::shared_ptr< T > | offer () const |
| BidPortfolio< T >::Ptr | portfolio () |
| double | preference () const |
| Request< T > * | request () const |
Static Public Member Functions | |
| static Bid< T > * | Create (Request< T > *request, boost::shared_ptr< T > offer, Trader *bidder, bool exclusive, double preference, Package::Ptr package=Package::unpackaged()) |
| static Bid< T > * | Create (Request< T > *request, boost::shared_ptr< T > offer, Trader *bidder, bool exclusive=false, Package::Ptr package=Package::unpackaged()) |
| static Bid< T > * | Create (Request< T > *request, boost::shared_ptr< T > offer, Trader *bidder, typename BidPortfolio< T >::Ptr portfolio, bool exclusive, double preference) |
| static Bid< T > * | Create (Request< T > *request, boost::shared_ptr< T > offer, Trader *bidder, typename BidPortfolio< T >::Ptr portfolio, bool exclusive=false, Package::Ptr package=Package::unpackaged()) |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
a factory method for a bid
| request | the request being responded to by this bid |
| offer | the resource being offered in response to the request |
| bidder | the bidder |
| portfolio | the porftolio of which this bid is a part |
| exclusive | flag for whether the bid is exclusive |
| preference | specifies the preference of a bid in a request to bid arc. If NaN the request preference is used. WARNING: This should only be set by the bidder using the requests callback cost function. Bidders should not arbitrarily set this preference. |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |