using System;
using System.ComponentModel;
using System.Xml.Serialization;

namespace Multiplex;

[Serializable]
public class Multiplexer
{
	private string id = "";

	private string driver_dll = "";

	private string description = "";

	private string bus_cfg = "";

	private string simulation_mode = "";

	private BindingList<Routing_Config> routing_config;

	[XmlElement("ROUTING_CONFIG")]
	public BindingList<Routing_Config> RoutingConfigList
	{
		get
		{
			return routing_config;
		}
		set
		{
			routing_config = value;
		}
	}

	[XmlAttribute("ID")]
	public string MultiplexerID
	{
		get
		{
			return id;
		}
		set
		{
			id = value;
		}
	}

	[XmlElement("DRIVER_DLL")]
	public string DriverDLL
	{
		get
		{
			return driver_dll;
		}
		set
		{
			driver_dll = value;
		}
	}

	[XmlElement("DESCRIPTION")]
	public string Description
	{
		get
		{
			return description;
		}
		set
		{
			description = value;
		}
	}

	[XmlElement("BUS_CONFIG")]
	public string BusConfig
	{
		get
		{
			return bus_cfg;
		}
		set
		{
			bus_cfg = value;
		}
	}

	[XmlElement("SIMULATION_MODE")]
	public string SimulationMode
	{
		get
		{
			return simulation_mode;
		}
		set
		{
			simulation_mode = value;
		}
	}

	public Multiplexer()
	{
		RoutingConfigList = new BindingList<Routing_Config>();
	}
}
