NoClockServo

Package: inet.clock.servo

compound module NoClockServo

No-op clock servo.

Summary


Implements IClockServo but intentionally performs no adjustments to the controlled clock. Useful as a baseline, for A/B comparisons, or to disable disciplining while keeping the servo plumbing and measurements intact.

Semantics


  • Ignores all offset/rate measurements.

  • Never steps or slews the clock; the clock remains free-running.

  • Preserves all IClock(1,:ref:2 <neddoc-msg-inet-iclock>) invariants trivially (no changes are applied).

Parameters


  • clockModule (inherited from ClockServoBase): path to the clock to be (not) disciplined.

See also: inet.clock.base.ClockServoBase, inet.clock.contract.IClockServo, inet.clock.contract.IClock

NoClockServo

Inheritance diagram

Extends

Name

Type

Description

ClockServoBase

compound module

Base module for clock servos.

Parameters

Name

Type

Default value

Description

displayStringTextFormat

string

“”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

clockModule

string

Path to the controlled clock module (IClock(1,:ref:2 <neddoc-msg-inet-iclock>))

Properties

Name

Value

Description

class

NoClockServo

display

i=block/control

Source code

//
// No-op clock servo.
//
// Summary
// -------
// Implements ~IClockServo but intentionally performs no adjustments to the
// controlled clock. Useful as a baseline, for A/B comparisons, or to disable
// disciplining while keeping the servo plumbing and measurements intact.
//
// Semantics
// ---------
// - Ignores all offset/rate measurements.
// - Never steps or slews the clock; the clock remains free-running.
// - Preserves all ~IClock invariants trivially (no changes are applied).
//
// Parameters
// ----------
// - clockModule (inherited from ~ClockServoBase): path to the clock to be (not) disciplined.
//
// @see ~inet.clock.base.ClockServoBase, ~inet.clock.contract.IClockServo, ~inet.clock.contract.IClock
//
module NoClockServo extends ClockServoBase like IClockServo
{
    parameters:
        @class(NoClockServo);
}

File: src/inet/clock/servo/NoClockServo.ned