diff --git a/src/inet/linklayer/ieee8021as/Gptp.ned b/src/inet/linklayer/ieee8021as/Gptp.ned index 158ea411ae0..2cad10389e8 100644 --- a/src/inet/linklayer/ieee8021as/Gptp.ned +++ b/src/inet/linklayer/ieee8021as/Gptp.ned @@ -7,8 +7,6 @@ package inet.linklayer.ieee8021as; -import inet.applications.contract.IApp; - // // This module implements the IEEE 802.1as protocol also known as gPTP. It // measures link delays to neighboring gPTP network nodes periodically. The @@ -16,7 +14,7 @@ import inet.applications.contract.IApp; // and their roles in the time synchronization domain. The time synchronization // is done periodically and the clock module is set. // -simple Gptp like IApp +simple Gptp like IGptp { parameters: string clockModule = default(""); // relative path of a module that implements IClock; optional diff --git a/src/inet/linklayer/ieee8021as/IGptp.ned b/src/inet/linklayer/ieee8021as/IGptp.ned new file mode 100644 index 00000000000..2c485c8e2de --- /dev/null +++ b/src/inet/linklayer/ieee8021as/IGptp.ned @@ -0,0 +1,20 @@ +// +// Copyright (C) 2010 Helene Lageber +// +// SPDX-License-Identifier: LGPL-3.0-or-later +// + +package inet.linklayer.ieee8021as; + +import inet.applications.contract.IApp; + +// +// Interface for gPTP module. +// +moduleinterface IGptp extends IApp +{ + parameters: + string gptpNodeType; + @display("i=block/app"); +} + diff --git a/src/inet/linklayer/ieee8021as/MultiDomainGptp.ned b/src/inet/linklayer/ieee8021as/MultiDomainGptp.ned index 3bde3660870..620af3f910e 100644 --- a/src/inet/linklayer/ieee8021as/MultiDomainGptp.ned +++ b/src/inet/linklayer/ieee8021as/MultiDomainGptp.ned @@ -7,7 +7,6 @@ package inet.linklayer.ieee8021as; -import inet.applications.contract.IApp; import inet.queueing.classifier.PacketClassifier; import inet.queueing.common.PacketMultiplexer; @@ -19,7 +18,7 @@ import inet.queueing.common.PacketMultiplexer; // // @see ~MultiClock // -module MultiDomainGptp like IApp +module MultiDomainGptp like IGptp { parameters: string clockModule; // relative module path of the multi clock @@ -31,7 +30,7 @@ module MultiDomainGptp like IApp input socketIn; output socketOut; submodules: - domain[numDomains]: like IApp { + domain[numDomains]: like IGptp { gptpNodeType = default(parent.gptpNodeType); clockModule = default(absPath(parent.clockModule) + ".clock[" + string(this.index) + "]"); interfaceTableModule = default(absPath(parent.interfaceTableModule));