CYCLUS
|
provide coefficients for default mass constraints
Coefficients are determiend by the request portfolio and are provided to the converter. The arc and exchange context are used in order to reference the original request so that the request's coefficient can be applied.
Definition at line 32 of file request_portfolio.h.
#include <request_portfolio.h>
Public Member Functions | |
virtual double | convert (boost::shared_ptr< T > offer, Arc const *a, ExchangeTranslationContext< T > const *ctx) const |
virtual bool | operator== (Converter< T > &other) const |
QtyCoeffConverter (const std::map< Request< T > *, double > &coeffs) | |
Public Member Functions inherited from cyclus::Converter< T > | |
bool | operator!= (Converter &other) const |
Public Attributes | |
std::map< Request< T > *, double > | coeffs |
Additional Inherited Members | |
Public Types inherited from cyclus::Converter< T > | |
typedef boost::shared_ptr< Converter< T > > | Ptr |
|
inline |
Definition at line 33 of file request_portfolio.h.
|
inlinevirtual |
convert a capacitated quantity for an offer in its exchange context
offer | the resource being offered |
a | the associated arc for the potential offer |
ctx | the exchange context in which the offer is being made |
Implements cyclus::Converter< T >.
Definition at line 36 of file request_portfolio.h.
|
inlinevirtual |
operator== is available for subclassing, see cyclus::TrivialConverter for an example
Reimplemented from cyclus::Converter< T >.
Definition at line 43 of file request_portfolio.h.
Definition at line 48 of file request_portfolio.h.