Пример #1
0
        private static void SetUp()
        {
            FacadePipe myPipe = new FacadePipe(myConfig.Station[0]);

            myMaster = new FacadeApplicationLayerMaster();
            myFacadeISegmentStatistics = new FacadeISegmentStatistics();

            SegmentTiming();

            myMachine = new SegmentStateMachine(myMaster, parameters, false, myFacadeISegmentStatistics, myTimeList);
            myMachine.ResetCounter();
            myMachine.DisconnectedAfterFailureEntered += new EventHandler(myMachine_DisconnectedAfterFailureEntered);
            FacadeSegment myFacadeSegment   = new FacadeSegment();
            int           myMaxNumberOfTags = int.MaxValue;

            Statistics.ChannelStatistics myChanel  = new Statistics.ChannelStatistics(myConfig.Channels[0]);
            DiagnosticSegment            mySegment = new DiagnosticSegment(myConfig.Segments[0], myChanel);

            myInterface = (new FacadeSegment.FacadePipeInterface(new InterfaceParameters(myConfig.Interfaces[0]), myPipe, mySegment));
            myInterface.ResetCounter();
            FacadeSegment.FacadeDataDescription myDataDescription = new FacadeSegment.FacadeDataDescription(myConfig.DataBlocks[0], ref myMaxNumberOfTags);
            myDataDescription.ResetCounter();
            myPipeDataBlock = new FacadeSegment.FacadePipeInterface.FacadePipeDataBlock(myFacadeSegment, myDataDescription, myInterface);
            myPipeDataBlock.ResetCounter();
        }
Пример #2
0
 internal FacadePipeInterface(InterfaceParameters interfaceDSC, FacadePipe pipe, CAS.CommServer.ProtocolHub.Communication.Diagnostic.Segment segment)
     :
     base(interfaceDSC, pipe, null, segment, 10)
 {
 }