public ModBusProtocol(ICommunicationLayer pCommLayer, ProtocolParameters pProtParameters, RTLib.Management.IProtocolParent pStatistic, SesDBufferPool <ModBusMessage> pPool) : base(pCommLayer, pProtParameters, pStatistic, pPool) { }
///// <summary> ///// SBUS protocol initialization ///// </summary> ///// <param name="cCommLayer">Interface responsible for providing the communication</param> ///// <param name="cProtParameters">Protocol parameters</param> ///// <param name="cStatistic">Statistical information about the communication performance</param> ///// <param name="cPool">Empty data messages pool to be used by the protocol.</param> //internal SBUSProtocol // ( ICommunicationLayer cCommLayer, ProtocolParameters cProtParameters, // BaseStation.Management.IProtocolParent cStatistic, SesDBufferPool<SBUSbase_message> cPool // ) // : base( cCommLayer, cProtParameters, cStatistic ) //{ // this.m_Pool = cPool; //} /// <summary> /// SBUS protocol initialization /// </summary> /// <param name="pStatistic">Statistical information about the communication performance</param> /// <param name="pCommLayer">Interface responsible for providing the communication</param> /// <param name="pProtParameters">Protocol parameters</param> /// <param name="cPool">Empty data messages pool to be used by the protocol.</param> internal SBUSProtocol(IProtocolParent pStatistic, ICommunicationLayer pCommLayer, ProtocolParameters pProtParameters, SesDBufferPool <FrameStateMachine> cPool) : base(pCommLayer, pProtParameters, pStatistic) { this.m_Pool = cPool; }
/// <summary> /// Creates the application layer sniffer. /// </summary> /// <param name="pCommLayer">The communication layer.</param> /// <param name="pProtParameters">The protocol parameters.</param> /// <param name="pStatistic">The statistic.</param> /// <returns>IApplicationLayerSlave</returns> public IApplicationLayerSniffer CreateApplicationLayerSniffer (ICommunicationLayer pCommLayer, ProtocolParameters pProtParameters, IProtocolParent pStatistic) { throw new ApplicationLayerInterfaceNotImplementedException(); }
public static Protocol GetProtocol(Type ProtocolType, ProtocolParameters ProtocolParameters) { return(Activator.CreateInstance(ProtocolType, ProtocolParameters) as Protocol); }
public static FieldInfo[] GetProtocolParametersFields(ProtocolParameters ProtocolParameters) //public static void GetProtocolParametersTypes(IProtocolParameters ProtocolParameters ) { FieldInfo[] ProtocolParametersFields = ProtocolParameters.GetType().GetFields(); return(ProtocolParametersFields); }
/// <summary> /// Creates the application layer slave. /// </summary> /// <param name="communicationLayerFactory">The communication factory.</param> /// <param name="protocolParameters">The protocol parameters.</param> /// <param name="protocolParent">The statistic.</param> /// <param name="cName">the name</param> /// <param name="cID">The Identifier.</param> /// <param name="cParent">The parent.</param> /// <returns></returns> public IApplicationLayerSlave CreateApplicationLayerSlave(ICommunicationLayerFactory communicationLayerFactory, ProtocolParameters protocolParameters, out IProtocolParent protocolParent, string cName, ulong cID, CommonBusControl cParent) { throw new ApplicationLayerInterfaceNotImplementedException(); }
public ProtocolParametersForm(ProtocolUserControl ParentProtocolUserControl, ProtocolParameters ProtocolParameters) : this() { this.ParentProtocolUserControl = ParentProtocolUserControl; this.FormProtocolParameters = ProtocolParameters; ProtocolParametersFields = ProtocolProvider.GetProtocolParametersFields(FormProtocolParameters); }