CYCLUS
|
a simple interface for converting resource objects to unit capacities
Definition at line 16 of file capacity_constraint.h.
#include <capacity_constraint.h>
Public Types | |
typedef boost::shared_ptr< Converter< T > > | Ptr |
Public Member Functions | |
virtual double | convert (boost::shared_ptr< T > offer, Arc const *a=NULL, ExchangeTranslationContext< T > const *ctx=NULL) const =0 |
bool | operator!= (Converter &other) const |
virtual bool | operator== (Converter &other) const |
Definition at line 17 of file capacity_constraint.h.
|
pure virtual |
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 |
Implemented in cyclus::QtyCoeffConverter< T >, and cyclus::TrivialConverter< T >.
Definition at line 35 of file capacity_constraint.h.
|
inlinevirtual |
operator== is available for subclassing, see cyclus::TrivialConverter for an example
Reimplemented in cyclus::TrivialConverter< T >, and cyclus::QtyCoeffConverter< T >.
Definition at line 32 of file capacity_constraint.h.