ClockExample

Package: inet.examples.clock

ClockExample

network

(no description)

referenceClock : IdealClock

Ideal clock: clock time equals simulation time.

Source:
referenceClock: IdealClock {
    @display("p=200,100");
} clock[numClock] : OscillatorBasedClock

Oscillator-driven clock.

Source:
clock[numClock]: OscillatorBasedClock {
    @display("p=200,200,column,100");
}

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Parameters

Name Type Default value Description
numClock int

Properties

Name Value Description
isNetwork

Source code

network ClockExample
{
    parameters:
        int numClock;
    submodules:
        referenceClock: IdealClock {
            @display("p=200,100");
        }
        clock[numClock]: OscillatorBasedClock {
            @display("p=200,200,column,100");
        }
}
File: examples/clock/ClockExample.ned