OMNeT++ API 6.1
Discrete Event Simulation Library
cResultRecorder::Context Struct Reference

Description

Context information for initialization. The result recorded should record a result (scalar, vector, etc) for the given component, with a name composed of (at least) statisticName and recordingMode. Result attributes should be taken either from the keys and values of the attrsProperty NED property, or from the manualAttrs string map (exactly one of the two must be non-nullptr). manualAttrs, when specified, will be owned (i.e. deleted) by the result recorder object.

Public Attributes

cComponentcomponent
 The statistic should be recorded for this module/channel; usually the module on which the @statistic property is defined. More...
 
const char * statisticName
 The base name for the statistic; usually the index of the @statistic[] property (the name in brackets). More...
 
const char * recordingMode
 The recording mode; usually an element the the record=... list in the @statistic property. More...
 
cPropertyattrsProperty
 An optional property from which extra attributes can be taken; usually the @statistic property. More...
 

Member Data Documentation

◆ component

cComponent* component

The statistic should be recorded for this module/channel; usually the module on which the @statistic property is defined.

◆ statisticName

const char* statisticName

The base name for the statistic; usually the index of the @statistic[] property (the name in brackets).

◆ recordingMode

const char* recordingMode

The recording mode; usually an element the the record=... list in the @statistic property.

◆ attrsProperty

cProperty* attrsProperty

An optional property from which extra attributes can be taken; usually the @statistic property.


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