marvis.channel.channel¶
Abstract Channel class.
Classes
The Channel resembles a physical connection of nodes. |
-
class
marvis.channel.channel.
Channel
(network, channel_name, nodes)[source]¶ Bases:
object
The Channel resembles a physical connection of nodes.
For CSMA this would be equivalent to one LAN cable. All Nodes connected to a channel will be on one collision domain.
- Warning: Do not instantiate a channel yourself.
Use the network’s capabilities to link nodes.
- Parameters
-
network
= None¶ The network the channel belongs to.
-
channel_name
= None¶ The name of the channel
-
interfaces
= None¶ All Interfaces (~network cards) on this channel.
-
ns3_nodes_container
= None¶ A container with all ns-3 internal nodes.
-
property
nodes
¶ Return all nodes of this channel.
- Returns
The list of nodes in this channel.
- Return type
list of
Node
-
prepare
(simulation)[source]¶ Prepare the channel (for logging).
- Parameters
simulation (
Simulation
) – The simulation to prepare the channel for.
Inheritance Diagramm
