ClockEvent.msg

Msg File src/inet/clock/common/ClockEvent.msg

Name Type Description
OverdueClockEventHandlingMode enum (no description)
ClockEvent message (no description)

Source code

//
// Copyright (C) 2020 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//

import inet.common.INETDefs;
import inet.clock.contract.ClockTime;
import inet.clock.contract.IClock;

namespace inet;

enum OverdueClockEventHandlingMode {
    UNSPECIFIED = -1;
    EXECUTE = 0;
    SKIP    = 1;
    ERROR   = 2;
}

message ClockEvent
{
    @customize;
    IClock *clock;
    bool relative = false;
    clocktime_t arrivalClockTime = -1;
    OverdueClockEventHandlingMode overdueClockEventHandlingMode = UNSPECIFIED;
}