internal PipeDataBlock (WaitTimeList<PipeDataBlock> myTOQueue, DataQueue.DataDescription myData, PipeInterface myInterface) : base(myTOQueue, myData.TimeScann) { this.myData = myData; this.myData.NotifyNewTimeScan += new EventHandler(NotifyNewTimeScan); this.myInterface = myInterface; }
internal Interface ( InterfaceDsc interfaceDSC, WaitTimeList myWTimeList, Management.Statistics.Segment statSegment, Management.Station statStation ) #endif : base(myWTimeList, parameters.InactivityTime) { myParameters = parameters; myStatistics = new Diagnostic.Interface(parameters.Name, parameters.InterfaceNumber, segmentStatistic, stationStatistic); }//Interface
/// <summary> /// Initializes a new instance of the <see cref="FacadeTODescriptor"/> class. /// </summary> /// <param name="AutoReset">if set to <c>true</c> auto reset feature is enabled.</param> /// <param name="parentList">The parent list.</param> /// <param name="cycle">The cycle.</param> /// <param name="operationDuration">Time span needed to execute the operation?</param> public FacadeTODescriptor(bool AutoReset, WaitTimeList <FacadeTODescriptor> parentList, TimeSpan cycle, TimeSpan operationDuration) : base(parentList, cycle) { m_parent = parentList; m_CycleSpan = cycle; m_OperationDuration = operationDuration; m_AutoReset = AutoReset; m_RunTimeStopwatch.Reset(); m_RunTimeStopwatch.Start(); m_CycleTimeStopwatch.Reset(); m_CycleTimeStopwatch.Start(); }
/// <summary> /// Initializes a new instance of the <see cref="WaitTimeList{TElement}"/> class. /// After creation the object is not added to the queue. /// </summary> /// <param name="queue">The queue.</param> /// <param name="cycle">The cycle.</param> /// <exception cref="ArgumentNullException">queue is a null reference.</exception> /// <remarks>After creation the object is not added to the queue.</remarks> public TODescriptor(WaitTimeList <TElement> queue, TimeSpan cycle) { myQueue = queue; if (queue == null) { throw new ArgumentNullException("queue in TODescriptor cannot be null"); } if (cycle.TotalMilliseconds == 0) { throw new ArgumentNullException("cycle in TODescriptor has to specify TimeSpan > 0 "); } lock (myQueue) myChainLink = new ChainLink(myQueue, (TElement)this, cycle); }
/// <summary> /// Initializes a new instance of the <see cref="DataBlock"/> class. /// </summary> /// <param name="myRow">My row.</param> /// <param name="myWriteInt">My write interface.</param> /// <param name="myStationState">State of my station.</param> /// <param name="myQueue">My queue.</param> /// <param name="cycle">The cycle.</param> /// <param name="cVConstrain">The down counter of max number of tags allowed according to license.</param> internal DataBlock(ComunicationNet.DataBlocksRow myRow, IDataWrite myWriteInt, IStationState myStationState, WaitTimeList<DataBlock> myQueue, TimeSpan cycle, ref int cVConstrain) : base(myQueue, cycle) { myStartAddress = (int)myRow.Address; myDataType = (short)myRow.DataType; CreateAllTags (myRow.GetTagsRows(), out mylength, myWriteInt, myStartAddress, myDataType, myStationState, ref cVConstrain); }
/// <summary> /// Initializes a new instance of the <see cref="Interface"/> class. /// </summary> /// <param name="parameters">The parameters.</param> /// <param name="myWTimeList">wait time list</param> /// <param name="segmentStatistic">The segment statistic.</param> /// <param name="stationStatistic">The station statistic.</param> internal Interface(InterfaceParameters parameters, WaitTimeList <Interface> myWTimeList, IInterface2SegmentLink segmentStatistic, Diagnostic.Station stationStatistic)
internal FacadePipeDataBlock(WaitTimeList <PipeDataBlock> waitTimeList, FacadeDataDescription dataDescription, FacadePipeInterface pipeInterface) : base(waitTimeList, dataDescription, pipeInterface) { }