CYCLUS
|
A CapacityConstraint provides an ability to determine an agent's constraints on resource allocation given a capacity.
Definition at line 64 of file capacity_constraint.h.
#include <capacity_constraint.h>
Public Member Functions | |
double | capacity () const |
CapacityConstraint (const CapacityConstraint &other) | |
CapacityConstraint (double capacity) | |
CapacityConstraint (double capacity, typename Converter< T >::Ptr converter) | |
double | convert (boost::shared_ptr< T > offer, Arc const *a=NULL, ExchangeTranslationContext< T > const *ctx=NULL) const |
Converter< T >::Ptr | converter () const |
int | id () const |
|
inline |
constructor for a constraint with a non-trivial converter
Definition at line 67 of file capacity_constraint.h.
|
inlineexplicit |
constructor for a constraint with a trivial converter (i.e., one that simply returns 1)
Definition at line 77 of file capacity_constraint.h.
|
inline |
constructor for a constraint with a non-trivial converter
Definition at line 86 of file capacity_constraint.h.
|
inline |
Definition at line 92 of file capacity_constraint.h.
|
inline |
Definition at line 101 of file capacity_constraint.h.
Definition at line 97 of file capacity_constraint.h.
|
inline |
Definition at line 109 of file capacity_constraint.h.