ChannelFactory

class mtf.network_port.channels.channel_factory.ChannelFactory

The ChannelFactory class is a class that contains class methods (@classmethod) to create instances of other classes such as CanChannel, LinChannel, FlexrayChannel, etc.

classmethod get_can_channel(channel_name: str, is_fd: bool = False) CanChannel

Creates an instance of CanChannel Args:

channel_name (str): Name of the channel. is_fd (bool): default value is false

Return:

CanChannel instance

classmethod get_lin_channel(channel_name: str) LinChannel

Creates an instance of LinChannel Args:

channel_name (str): Name of the channel.

Return:

LinChannel instance

classmethod get_flexray_channel(channel_name: str) FlexrayChannel

Creates an instance of FlexrayChannel Args:

channel_name (str): Name of the channel.

Return:

FlexrayChannel instance

classmethod get_io_channel(channel_name: str) IoChannel

Creates an instance of IoChannel Args:

channel_name (str): Name of the channel.

Return:

IoChannel instance

classmethod get_serial_channel(channel_name: str) SerialChannel

Creates an instance of SerialChannel Args:

channel_name (str): Name of the channel.

Return:

SerialChannel instance

classmethod get_ethernet_channel(channel_name: str) EthernetChannel

Creates an instance of EthernetChannel Args:

channel_name (str): Name of the channel.

Return:

EthernetChannel instance

classmethod get_tunnel_channel(channel_name: str) TunnelChannel

Creates an instance of TunnelChannel Args:

channel_name (str): Name of the channel.

Return:

TunnelChannel instance