CYCLUS
|
A ExchangeNodeGroup is a collection of ExchangeNodes, and is the ExchangeGraph representation of a BidPortfolio or RequestPortfolio.
It houses information about the concrete capacities associated with either portfolio.
Definition at line 118 of file exchange_graph.h.
#include <exchange_graph.h>
Public Types | |
typedef boost::shared_ptr< ExchangeNodeGroup > | Ptr |
Public Member Functions | |
void | AddCapacity (double c) |
virtual void | AddExchangeNode (ExchangeNode::Ptr node) |
void | AddExclGroup (std::vector< ExchangeNode::Ptr > &nodes) |
void | AddExclNode (ExchangeNode::Ptr n) |
std::vector< double > & | capacities () |
const std::vector< double > & | capacities () const |
std::vector< std::vector< ExchangeNode::Ptr > > & | excl_node_groups () |
const std::vector< std::vector< ExchangeNode::Ptr > > & | excl_node_groups () const |
bool | HasArcs () |
std::vector< ExchangeNode::Ptr > & | nodes () |
const std::vector< ExchangeNode::Ptr > & | nodes () const |
typedef boost::shared_ptr<ExchangeNodeGroup> cyclus::ExchangeNodeGroup::Ptr |
Definition at line 120 of file exchange_graph.h.
Add a flow capacity to the group.
Definition at line 168 of file exchange_graph.h.
|
virtual |
Add the node to the ExchangeNodeGroup and informs the node it is a member of this ExchangeNodeGroup.
Reimplemented in cyclus::RequestGroup.
Definition at line 90 of file exchange_graph.cc.
|
inline |
Adds a node grouping to the set of exclusive node groups, in general this function is used for bid exclusivity.
An exclusive group implies that for all nodes in that group, flow is only allowed to flow over one. This is the case for multiple bids that refer to the same exclusive object.
Definition at line 148 of file exchange_graph.h.
void cyclus::ExchangeNodeGroup::AddExclNode | ( | ExchangeNode::Ptr | n | ) |
adds a single node to the set of exclusive node groupings, in general this function is used for demand exclusivity
Definition at line 96 of file exchange_graph.cc.
|
inline |
Definition at line 137 of file exchange_graph.h.
the flow capacities assocaited with this group
Definition at line 136 of file exchange_graph.h.
|
inline |
Definition at line 131 of file exchange_graph.h.
|
inline |
exclusive node groups represent nodes over whose combined arcs flow can only exist on one arc
Definition at line 128 of file exchange_graph.h.
|
inline |
Definition at line 153 of file exchange_graph.h.
|
inline |
Definition at line 123 of file exchange_graph.h.
|
inline |
Definition at line 122 of file exchange_graph.h.