![]() |
CYCLUS
|
A CapacityConstraint provides an ability to determine an agent's constraints on resource allocation given a capacity.
Definition at line 57 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 60 of file capacity_constraint.h.
|
inlineexplicit |
constructor for a constraint with a trivial converter (i.e., one that simply returns 1)
Definition at line 68 of file capacity_constraint.h.
|
inline |
constructor for a constraint with a non-trivial converter
Definition at line 76 of file capacity_constraint.h.
|
inline |
Definition at line 82 of file capacity_constraint.h.
|
inline |
Definition at line 87 of file capacity_constraint.h.
|
inline |
Definition at line 85 of file capacity_constraint.h.
|
inline |
Definition at line 94 of file capacity_constraint.h.