CYCLUS
Loading...
Searching...
No Matches
cyclus::TradeExecutor< T > Class Template Reference

Detailed Description

template<class T>
class cyclus::TradeExecutor< T >

The TradeExecutor is an object whose task is to execute a collection of Trades.

Trade Execution takes nominally three steps: #. Grouping all trades by supplier (sender) #. Collecting responses for the group of trades from each supplier #. Grouping all responses by requester (receiver) #. Sending all grouped responses to their respective requester

Definition at line 47 of file trade_executor.h.

#include <trade_executor.h>

Public Member Functions

void ExecuteTrades ()
 
void ExecuteTrades (Context *ctx)
 
void RecordTrades (Context *ctx)
 
TradeExecutionContext< T > & trade_ctx ()
 
const TradeExecutionContext< T > & trade_ctx () const
 
 TradeExecutor (const std::vector< Trade< T > > &trades)
 

Constructor & Destructor Documentation

◆ TradeExecutor()

template<class T >
cyclus::TradeExecutor< T >::TradeExecutor ( const std::vector< Trade< T > > & trades)
inlineexplicit

Definition at line 49 of file trade_executor.h.

Member Function Documentation

◆ ExecuteTrades() [1/2]

template<class T >
void cyclus::TradeExecutor< T >::ExecuteTrades ( )
inline

execute all trades, collecting responders from bidders and sending responses to requesters

Deprecated
Use ExecuteTrades(Context*) instead. This function just calls ExecuteTrades(NULL).

Definition at line 57 of file trade_executor.h.

◆ ExecuteTrades() [2/2]

template<class T >
void cyclus::TradeExecutor< T >::ExecuteTrades ( Context * ctx)
inline

execute all trades, collecting responders from bidders and sending responses to requesters

Definition at line 64 of file trade_executor.h.

◆ RecordTrades()

template<class T >
void cyclus::TradeExecutor< T >::RecordTrades ( Context * ctx)
inline

Record all trades with the appropriate backends.

Parameters
ctxthe Context through which communication with backends will occur

Definition at line 77 of file trade_executor.h.

◆ trade_ctx() [1/2]

template<class T >
TradeExecutionContext< T > & cyclus::TradeExecutor< T >::trade_ctx ( )
inline

Definition at line 109 of file trade_executor.h.

◆ trade_ctx() [2/2]

template<class T >
const TradeExecutionContext< T > & cyclus::TradeExecutor< T >::trade_ctx ( ) const
inline

Definition at line 106 of file trade_executor.h.


The documentation for this class was generated from the following file: