INET Framework for OMNeT++/OMNEST
inet::physicallayer::DelayedMapping Class Reference

Moves another Mapping in its time dimension. More...

#include <MappingUtils.h>

Inheritance diagram for inet::physicallayer::DelayedMapping:
inet::physicallayer::BaseDelayedMapping< Mapping > inet::physicallayer::Mapping inet::physicallayer::ConstMapping

Public Member Functions

 DelayedMapping (Mapping *mapping, simtime_t_cref delay)
 
virtual ~DelayedMapping ()
 
virtual void setValue (const Argument &pos, Argument::mapped_type_cref value) override
 Changes the value of the Mapping at the specified position. More...
 
virtual Mappingclone () const override
 Returns a deep copy of this Mapping. More...
 
virtual MappingIteratorcreateIterator () override
 Returns a pointer of a new Iterator which is able to iterate over the Mapping and can change it. More...
 
virtual MappingIteratorcreateIterator (const Argument &pos) override
 Returns a pointer of a new Iterator which is able to iterate over the function and can change it. More...
 
- Public Member Functions inherited from inet::physicallayer::BaseDelayedMapping< Mapping >
 BaseDelayedMapping (const BaseDelayedMapping &o)
 
 BaseDelayedMapping (Mapping *mapping, simtime_t_cref delay)
 
BaseDelayedMappingoperator= (const BaseDelayedMapping &copy)
 BaseDelayedMapping assignment operator. More...
 
void swap (BaseDelayedMapping &s)
 Swaps data with another BaseDelayedMapping. More...
 
virtual ~BaseDelayedMapping ()
 
virtual Mapping::argument_value_t getValue (const Argument &pos) const
 
virtual ConstMappingIteratorcreateConstIterator () const
 
virtual ConstMappingIteratorcreateConstIterator (const Argument &pos) const
 
virtual simtime_t_cref getDelay () const
 Returns the delay used by this mapping. More...
 
virtual void delayMapping (simtime_t_cref d)
 Changes the delay to the passed value. More...
 
- Public Member Functions inherited from inet::physicallayer::Mapping
Mappingoperator= (const Mapping &copy)
 Mapping assignment operator. More...
 
void swap (Mapping &s)
 Swaps data with another Mapping. More...
 
 Mapping (const DimensionSet &dims)
 Initializes the Mapping with the passed DimensionSet as domain. More...
 
 Mapping ()
 Initializes the Mapping with the time dimension as domain. More...
 
 Mapping (const Mapping &o)
 
virtual ~Mapping ()
 
virtual void appendValue (const Argument &pos, argument_value_cref_t value)
 Appends the passed value at the passed position to the mapping. More...
 
virtual ConstMappingconstClone () const override
 Returns a deep const copy of this mapping by using the according "clone()"-implementation. More...
 
- Public Member Functions inherited from inet::physicallayer::ConstMapping
ConstMappingoperator= (const ConstMapping &copy)
 ConstMapping assignment operator. More...
 
void swap (ConstMapping &s)
 Swaps data with another ConstMapping. More...
 
 ConstMapping ()
 Initializes the ConstMapping with a the time dimension as domain. More...
 
 ConstMapping (const ConstMapping &o)
 
 ConstMapping (const DimensionSet &dimSet)
 Initializes the ConstMapping with the passed DimensionSet as Domain. More...
 
virtual ~ConstMapping ()
 
argument_value_t operator[] (const Argument &pos) const
 Returns the value of this Mapping at the position specified by the passed Argument. More...
 
const DimensionSetgetDimensionSet () const
 Returns this Mappings domain as DimensionSet. More...
 
template<class stream >
stream & print (stream &out, argument_value_cref_t lTimeScale=argument_value_t(1), argument_value_cref_t lLeftColScale=Argument::MappedOne, const std::string &sTableHead=std::string("o\\ms"), const Dimension *const pOnlyDim=nullptr) const
 Prints the Mapping to an output stream. More...
 

Additional Inherited Members

- Public Types inherited from inet::physicallayer::Mapping
enum  InterpolationMethod { STEPS, NEAREST, LINEAR }
 Types of interpolation methods for mappings. More...
 
- Public Types inherited from inet::physicallayer::ConstMapping
typedef Argument::mapped_type argument_value_t
 
typedef Argument::mapped_type_cref argument_value_cref_t
 
- Protected Member Functions inherited from inet::physicallayer::BaseDelayedMapping< Mapping >
Argument delayPosition (const Argument &pos) const
 
- Protected Attributes inherited from inet::physicallayer::BaseDelayedMapping< Mapping >
Mappingmapping
 
simtime_t delay
 
- Protected Attributes inherited from inet::physicallayer::ConstMapping
DimensionSet dimensions
 The dimensions of this mappings domain. More...
 

Detailed Description

Moves another Mapping in its time dimension.

See propagation delay effect of the signal for an example how to use this mapping.

Author
Karl Wessel

Constructor & Destructor Documentation

inet::physicallayer::DelayedMapping::DelayedMapping ( Mapping mapping,
simtime_t_cref  delay 
)
inline
2908  :
2909  BaseDelayedMapping<Mapping>(mapping, delay) {}
Mapping * mapping
Definition: MappingUtils.h:2789
simtime_t delay
Definition: MappingUtils.h:2790
virtual inet::physicallayer::DelayedMapping::~DelayedMapping ( )
inlinevirtual
2911 {}

Member Function Documentation

virtual Mapping* inet::physicallayer::DelayedMapping::clone ( ) const
inlineoverridevirtual

Returns a deep copy of this Mapping.

Implements inet::physicallayer::Mapping.

2919  {
2920  return new DelayedMapping(mapping->clone(), delay);
2921  }
DelayedMapping(Mapping *mapping, simtime_t_cref delay)
Definition: MappingUtils.h:2908
Mapping * mapping
Definition: MappingUtils.h:2789
simtime_t delay
Definition: MappingUtils.h:2790
virtual Mapping * clone() const =0
Returns a deep copy of this Mapping.
virtual MappingIterator* inet::physicallayer::DelayedMapping::createIterator ( )
inlineoverridevirtual

Returns a pointer of a new Iterator which is able to iterate over the Mapping and can change it.

Implements inet::physicallayer::Mapping.

2924  {
2926  }
virtual MappingIterator * createIterator()=0
Returns a pointer of a new Iterator which is able to iterate over the Mapping and can change it...
Mapping * mapping
Definition: MappingUtils.h:2789
simtime_t delay
Definition: MappingUtils.h:2790
BaseDelayedIterator< FilteredMappingIterator, MappingIterator > DelayedMappingIterator
Iterator for a DelayedMapping.
Definition: MappingUtils.h:2776
virtual MappingIterator* inet::physicallayer::DelayedMapping::createIterator ( const Argument pos)
inlineoverridevirtual

Returns a pointer of a new Iterator which is able to iterate over the function and can change it.

The iterator starts at the passed position.

Implements inet::physicallayer::Mapping.

2929  {
2931  }
virtual MappingIterator * createIterator()=0
Returns a pointer of a new Iterator which is able to iterate over the Mapping and can change it...
Mapping * mapping
Definition: MappingUtils.h:2789
simtime_t delay
Definition: MappingUtils.h:2790
BaseDelayedIterator< FilteredMappingIterator, MappingIterator > DelayedMappingIterator
Iterator for a DelayedMapping.
Definition: MappingUtils.h:2776
Argument delayPosition(const Argument &pos) const
Definition: MappingUtils.h:2793
virtual void inet::physicallayer::DelayedMapping::setValue ( const Argument pos,
Argument::mapped_type_cref  value 
)
inlineoverridevirtual

Changes the value of the Mapping at the specified position.

The complexity of this method depends on the implementation.

Implements inet::physicallayer::Mapping.

2914  {
2915  mapping->setValue(delayPosition(pos), value);
2916  }
virtual void setValue(const Argument &pos, argument_value_cref_t value)=0
Changes the value of the Mapping at the specified position.
Mapping * mapping
Definition: MappingUtils.h:2789
Argument delayPosition(const Argument &pos) const
Definition: MappingUtils.h:2793

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