nec2++  1.7.0
Public Member Functions | Public Attributes | List of all members
nec_results Class Reference

#include <nec_results.h>

Public Member Functions

void add (nec_base_result *br)
 
nec_base_resultget_result (const long index, const enum nec_result_type result_type)
 Get the nth result that matches the specified result type. More...
 
nec_norm_rx_patternget_norm_rx_pattern (const long index)
 Get normalized receiving pattern results. More...
 
nec_radiation_patternget_radiation_pattern (const long index)
 Get radiation pattern results. More...
 
nec_antenna_inputget_antenna_input (const long index)
 Get antenna input parameter results. More...
 
nec_structure_excitationget_structure_excitation (const long index)
 Get structure excitation results. More...
 
nec_near_field_patternget_near_field_pattern (const long index)
 Get near field pattern results. More...
 
nec_structure_currentsget_structure_currents (const long index)
 Get structure currents results. More...
 
void write (ostream &os)
 

Public Attributes

enum RESULT_FORMAT m_result_format
 

Detailed Description

Stores a whole lot of nec_result objects. This class is effectively a database of the simulation results.

Usage

    nec_antenna_input* ai = new nec_antenna_input();
    s_results.add(ai);
    ai->set_intput(tag, segment, voltage, current, impedance, admittance, power);
    ai->set_intput(tag, segment, voltage, current, impedance, admittance, power);
    ai->set_intput(tag, segment, voltage, current, impedance, admittance, power);

Member Function Documentation

nec_antenna_input* nec_results::get_antenna_input ( const long  index)
inline

Get antenna input parameter results.

Parameters
indexThe zero-based index for the antenna input.
Returns
NULL if the result does not exist.
Note
You must NOT delete the nec_antenna_input object when finished with it.

Referenced by nec_context::get_input_parameters().

nec_near_field_pattern* nec_results::get_near_field_pattern ( const long  index)
inline

Get near field pattern results.

Parameters
indexThe zero-based index for the nec_structure_excitation.
Returns
NULL if the result does not exist.
Note
You must NOT delete the nec_structure_excitation object when finished with it.

Referenced by nec_context::get_near_field_pattern().

nec_norm_rx_pattern* nec_results::get_norm_rx_pattern ( const long  index)
inline

Get normalized receiving pattern results.

Parameters
indexThe zero-based index for the normalized receiving pattern.
Returns
NULL if the result does not exist.
Note
You must NOT delete the nec_norm_rx_pattern object when finished with it.

Referenced by nec_context::get_norm_rx_pattern().

nec_radiation_pattern* nec_results::get_radiation_pattern ( const long  index)
inline

Get radiation pattern results.

Parameters
indexThe zero-based index for the radiation pattern.
Returns
NULL if the result does not exist.
Note
You must NOT delete the nec_radiation_pattern object when finished with it.

Referenced by nec_context::get_radiation_pattern().

nec_base_result* nec_results::get_result ( const long  index,
const enum nec_result_type  result_type 
)
inline

Get the nth result that matches the specified result type.

Parameters
indexThe zero-based index for the result
result_typeThe requested result type
Returns
NULL if the result does not exist.
Note
You must NOT delete the nec_norm_rx_pattern object when finished with it.
nec_structure_currents* nec_results::get_structure_currents ( const long  index)
inline

Get structure currents results.

Parameters
indexThe zero-based index for the nec_structure_excitation.
Returns
NULL if the result does not exist.
Note
You must NOT delete the nec_structure_excitation object when finished with it.

Referenced by nec_context::get_structure_currents().

nec_structure_excitation* nec_results::get_structure_excitation ( const long  index)
inline

Get structure excitation results.

Parameters
indexThe zero-based index for the nec_structure_excitation.
Returns
NULL if the result does not exist.
Note
You must NOT delete the nec_structure_excitation object when finished with it.

Referenced by nec_context::get_structure_excitation().


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