NED File src/inet/queueing/source/PassivePacketSource.ned
Name | Type | Description |
---|---|---|
PassivePacketSource | simple module |
This module is a passive packet source which can be pulled for packets from the connected packet collector. |
Source code
// // Copyright (C) 2020 OpenSim Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later // package inet.queueing.source; import inet.queueing.base.PassivePacketSourceBase; import inet.queueing.contract.IPassivePacketSource; // // This module is a passive packet source which can be pulled for packets from // the connected packet collector. // simple PassivePacketSource extends PassivePacketSourceBase like IPassivePacketSource { parameters: string clockModule = default(""); // relative path of a module that implements IClock; optional double initialProvidingOffset @unit(s) = default(0s); // initial duration before which packets are not provided volatile double providingInterval @unit(s) = default(0s); // elapsed time between subsequent packets allowed to be pulled by the connected packet collector, 0 means any number of packets can be pulled at the same simulation time bool scheduleForAbsoluteTime = default(true); // when a clock is used relative means that setting the clock will not affect the simulation time of the event @class(PassivePacketSource); gates: output out @labels(pull); }