Cable

Package: inet.common

Cable

channel

(no description)

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Known subclasses

Name Type Description
EthernetLink channel

EthernetLink provides a base channel type for Ethernet connections with configurable length and propagation delay. It extends the Cable type and calculates the delay based on the physical length of the cable(1,2,3) and the speed of light in the medium.

Extends

Name Type Description
DatarateChannel channel (no description)

Parameters

Name Type Default value Description
disabled bool false
delay double 0s

propagation delay

datarate double 0bps

bits per second; 0=infinite

ber double 0

bit error rate (BER)

per double 0

packet error rate (PER)

enabledLineStyle string "solid"
disabledLineStyle string "dashed"
disabledIcon string "status/cross"

Properties

Name Value Description
class Cable

Signals

Name Type Unit Description
channelBusy long
messageSent omnetpp::cMessage
messageDiscarded omnetpp::cMessage

Statistics

Name Title Source Record Unit Interpolation Mode Description
packetsDiscarded constant1(messageDiscarded) count? none
busy channelBusy vector? sample-hold
utilization timeavg(channelBusy) last?
packetBytes packetBytes(messageSent) sum? B none
throughput sumPerDuration(packetBits(messageSent)) last? bps
packets constant1(messageSent) count? none

Source code

channel Cable extends DatarateChannel
{
    parameters:
        string enabledLineStyle = default("solid");
        string disabledLineStyle = default("dashed");
        string disabledIcon = default("status/cross");
        @class(Cable);
}
File: src/inet/common/Cable.ned