SObjectizer  5.5
Public Member Functions | Private Attributes | List of all members
so_5::agent_context_t Class Reference

A context for agent construction and tuning. More...

#include <agent_context.hpp>

Public Member Functions

 agent_context_t (environment_t &env)
 Constructor for the case when only environment available. More...
 
 agent_context_t (environment_t &env, agent_tuning_options_t options)
 
 agent_context_t (const agent_context_t &ctx)
 Copy constructor. More...
 
 agent_context_t (agent_context_t &&ctx)
 Move constructor. More...
 
void swap (agent_context_t &other)
 Swap operation. More...
 
agent_context_toperator= (agent_context_t ctx)
 Copy/move operator. More...
 
environment_tenv () const
 Access to SObjectizer Environment. More...
 
environment_tenvironment () const
 Access to SObjectizer Environment. More...
 
agent_tuning_options_toptions ()
 Read-Write access to agent options. More...
 
const agent_tuning_options_toptions () const
 Read-only access to agent options. More...
 

Private Attributes

environment_tm_env
 SObjectizer Environment to work in. More...
 
agent_tuning_options_t m_options
 Options for agent tuning. More...
 

Detailed Description

A context for agent construction and tuning.

Since
v.5.5.4

Constructor & Destructor Documentation

◆ agent_context_t() [1/4]

so_5::agent_context_t::agent_context_t ( environment_t env)
inline

Constructor for the case when only environment available.

Parameters
envSObjectizer Environment an agent will work in.

◆ agent_context_t() [2/4]

so_5::agent_context_t::agent_context_t ( environment_t env,
agent_tuning_options_t  options 
)
inline

Constructor for the case when environment and already created tuning option object are avaliable.

Parameters
envSObjectizer Environment an agent will work in.
optionsOptions to be used for agent tuning.

◆ agent_context_t() [3/4]

so_5::agent_context_t::agent_context_t ( const agent_context_t ctx)
inline

Copy constructor.

◆ agent_context_t() [4/4]

so_5::agent_context_t::agent_context_t ( agent_context_t &&  ctx)
inline

Move constructor.

Member Function Documentation

◆ env()

environment_t& so_5::agent_context_t::env ( ) const
inline

Access to SObjectizer Environment.

◆ environment()

environment_t& so_5::agent_context_t::environment ( ) const
inline

Access to SObjectizer Environment.

Since
v.5.5.9

◆ operator=()

agent_context_t& so_5::agent_context_t::operator= ( agent_context_t  ctx)
inline

Copy/move operator.

◆ options() [1/2]

agent_tuning_options_t& so_5::agent_context_t::options ( )
inline

Read-Write access to agent options.

◆ options() [2/2]

const agent_tuning_options_t& so_5::agent_context_t::options ( ) const
inline

Read-only access to agent options.

◆ swap()

void so_5::agent_context_t::swap ( agent_context_t other)
inline

Swap operation.

Member Data Documentation

◆ m_env

environment_t* so_5::agent_context_t::m_env
private

SObjectizer Environment to work in.

◆ m_options

agent_tuning_options_t so_5::agent_context_t::m_options
private

Options for agent tuning.


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