Specialization of ChannelFacetScalar for ComplexChannel. More...
#include <Channels/ChannelFacetScalar.H>
Public Member Functions | |
virtual | ~ChannelFacetScalarComplex () |
Destructor. | |
void | setVal (const uint subchan, const double val) |
Set a value. | |
double | getVal (const uint subchan) const |
Get a value. | |
virtual void | writeTo (ParamMap &pmap) const |
Write our data out to a ParamMap. | |
virtual void | readFrom (const ParamMap &pmap) |
Read our data back in from a ParamMap. | |
Protected Member Functions | |
ChannelFacetScalarComplex (const ComplexChannel &chan, const double initval) | |
Constructor. |
Specialization of ChannelFacetScalar for ComplexChannel.
This class holds one or more named scalar parameters per subchannel of the ComplexChannel. Note that this should be called after the model has been start()'ed since we will in our constructor query the ComplexChannel to determine how many subchannels it has. Typically, PreFrontalCortex would be in charge of installing these facets by using a ChannelVisitor depending on the type of extra top-down attention components being used.
Definition at line 124 of file ChannelFacetScalar.H.
ChannelFacetScalarComplex::~ChannelFacetScalarComplex | ( | ) | [virtual] |
Destructor.
Definition at line 131 of file ChannelFacetScalar.C.
ChannelFacetScalarComplex::ChannelFacetScalarComplex | ( | const ComplexChannel & | chan, | |
const double | initval | |||
) | [protected] |
Constructor.
Definition at line 125 of file ChannelFacetScalar.C.
double ChannelFacetScalarComplex::getVal | ( | const uint | subchan | ) | const |
void ChannelFacetScalarComplex::readFrom | ( | const ParamMap & | pmap | ) | [virtual] |
Read our data back in from a ParamMap.
Implements ChannelFacet.
Definition at line 161 of file ChannelFacetScalar.C.
References ParamMap::getDoubleParam(), ParamMap::hasParam(), and sformat().
void ChannelFacetScalarComplex::setVal | ( | const uint | subchan, | |
const double | val | |||
) |
void ChannelFacetScalarComplex::writeTo | ( | ParamMap & | pmap | ) | const [virtual] |
Write our data out to a ParamMap.
Implements ChannelFacet.
Definition at line 151 of file ChannelFacetScalar.C.
References ParamMap::putDoubleParam(), and sformat().