OscillatorBase

Package: inet.clock.base

OscillatorBase

simple module

This is a base module for oscillators.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Known subclasses

Name Type Description
DriftingOscillatorBase simple module

This is a base module for oscillators that drift relative to the nominal tick length over time.

IdealOscillator simple module

This module generates ticks periodically with a constant tick length.

Parameters

Name Type Default value Description
displayStringTextFormat string "%n"

determines the text that is written on top of the submodule

Properties

Name Value Description
class OscillatorBase
display i=block/tunnel

Signals

Name Type Unit
driftRateChanged double

Statistics

Name Title Source Record Unit Interpolation Mode
driftRateChanged Oscillator drift rate vector ppm sample-hold

Source code

//
// This is a base module for oscillators.
//
simple OscillatorBase
{
    parameters:
        string displayStringTextFormat = default("%n"); // determines the text that is written on top of the submodule
        @class(OscillatorBase);
        @display("i=block/tunnel");
        @signal[driftRateChanged](type=double);
        @statistic[driftRateChanged](title="Oscillator drift rate"; record=vector; interpolationmode=sample-hold; unit=ppm);
}

File: src/inet/clock/base/OscillatorBase.ned