/// <summary> /// Constructor /// </summary> /// <param name="selector">An object used to refer to this port in the IRouting device's ExecuteSwitch method. /// May be string, number, whatever</param> /// <param name="parent">The IRoutingInputs object this lives on</param> /// <param name="funcs">A VideoStatusFuncsWrapper used to assign the callback funcs that will get /// the values for the various stats</param> public RoutingInputPortWithVideoStatuses(string key, eRoutingSignalType type, eRoutingPortConnectionType connType, object selector, IRoutingInputs parent, VideoStatusFuncsWrapper funcs) : base(key, type, connType, selector, parent) { VideoStatus = new VideoStatusOutputs(funcs); }
public RoutingPort(string key, eRoutingSignalType type, eRoutingPortConnectionType connType, object selector, bool isInternal) { Key = key; Type = type; ConnectionType = connType; Selector = selector; IsInternal = IsInternal; }
/// <summary> /// Constructor for a virtual routing input port that lives inside a device. For example /// the ports that link a DM card to a DM matrix bus /// </summary> /// <param name="isInternal">true for internal ports</param> public RoutingInputPort(string key, eRoutingSignalType type, eRoutingPortConnectionType connType, object selector, IRoutingInputs parent, bool isInternal) : base(key, type, connType, selector, isInternal) { if (parent == null) { throw new ArgumentNullException("parent"); } ParentDevice = parent; }
/// <summary> /// Adds OutputPort and sets Port as ICec object /// </summary> void AddOutputPortWithDebug(uint cardNum, string portName, eRoutingSignalType sigType, eRoutingPortConnectionType portType, object selector, ICec cecPort) { var portKey = string.Format("outputCard{0}--{1}", cardNum, portName); Debug.Console(2, this, "Adding output port '{0}'", portKey); var outputPort = new RoutingOutputPort(portKey, sigType, portType, selector, this); if (cecPort != null) { outputPort.Port = cecPort; } OutputPorts.Add(outputPort); }
/// <summary> /// Adds OutputPort /// </summary> void AddOutputPortWithDebug(uint cardNum, string portName, eRoutingSignalType sigType, eRoutingPortConnectionType portType, object selector) { var portKey = string.Format("outputCard{0}--{1}", cardNum, portName); Debug.Console(2, this, "Adding output port '{0}'", portKey); OutputPorts.Add(new RoutingOutputPort(portKey, sigType, portType, selector, this)); }
/// <summary> /// Adds InputPort and sets Port as ICec object /// </summary> void AddInputPortWithDebug(uint cardNum, string portName, eRoutingSignalType sigType, eRoutingPortConnectionType portType, ICec cecPort) { var portKey = string.Format("inputCard{0}--{1}", cardNum, portName); Debug.Console(2, this, "Adding input port '{0}'", portKey); var inputPort = new RoutingInputPort(portKey, sigType, portType, cardNum, this); if (cecPort != null) { inputPort.Port = cecPort; } InputPorts.Add(inputPort); }
/// <summary> /// Constructor for a basic RoutingInputPort /// </summary> /// <param name="selector">An object used to refer to this port in the IRouting device's ExecuteSwitch method. /// May be string, number, whatever</param> /// <param name="parent">The IRoutingInputs object this lives on</param> public RoutingInputPort(string key, eRoutingSignalType type, eRoutingPortConnectionType connType, object selector, IRoutingInputs parent) : this(key, type, connType, selector, parent, false) { }