Example #1
0
 internal void OnMessageReceived(Interface5 interface5_0, IMessageHandler interface37_0)
 {
     if (!interface5_0.imethod_1())
     {
         interface5_0.SetClientType(interface37_0.Header.GetClientType());
     }
     if (this.bool_5)
     {
         interface37_0.Header.UserID = interface5_0.GetIPEndPoint().ToString();
     }
     if ((this.interface41_0 != null) && !this.interface41_0.imethod_0(interface5_0.GetIPEndPoint(), interface5_0.imethod_4(), interface37_0))
     {
         this.Disconnected(interface5_0.GetIPEndPoint(), DisconnectedType.InvalidMessage);
     }
     else if (!interface5_0.VerifyUser(interface37_0.Header.UserID))
     {
         this.Disconnected(interface5_0.GetIPEndPoint(), DisconnectedType.MessageWithWrongUserID);
         this.emptyAgileLogger_0.Log("MessageWithWrongUserID", string.Format("Owner UserID :{0} ,Message UserID:{1}", interface5_0.UserID, interface37_0.Header.UserID), "CJFramework.Engine.Tcp.Server.BaseTcpEngine.HandleMessage", ErrorLevel.Standard);
     }
     else if (interface5_0.imethod_4() == ((Enum4)2))
     {
         this.Disconnected(interface5_0.GetIPEndPoint(), DisconnectedType.BeingPushedOut);
     }
     else
     {
         interface5_0.imethod_12();
         this.eventSafeTrigger_0.Action <IMessageHandler>("MessageReceived", this.MessageReceived, interface37_0);
         this.eventSafeTrigger_0.Action <Enum4, IMessageHandler>("MessageReceived2", this.MessageReceived2, interface5_0.imethod_4(), interface37_0);
         IMessageHandler interface2 = this.interface25_0.DispatchMessage(interface37_0);
         if (!((interface2 == null) || this.bool_0))
         {
             this.PostMessageToClient(interface5_0.GetIPEndPoint(), interface2, ActionTypeOnChannelIsBusy.Continue);
         }
     }
 }
Example #2
0
 // Token: 0x060001E9 RID: 489 RVA: 0x00012438 File Offset: 0x00010638
 private static bool smethod_3(Interface5 interface5_0)
 {
     byte[] array = new byte[]
     {
         0,
         130,
         byte.MaxValue
     };
     for (int i = 0; i < array.Length; i++)
     {
         byte b = array[i];
         interface5_0.imethod_2(i, ref b);
     }
     if (interface5_0.imethod_0() != array.Length)
     {
         return(false);
     }
     for (int j = 0; j < array.Length; j++)
     {
         byte b2;
         interface5_0.imethod_1(j, out b2);
         if (b2 != array[j])
         {
             return(false);
         }
     }
     interface5_0.imethod_3();
     return(interface5_0.imethod_0() == 0);
 }
Example #3
0
    private void OnConnected1()
    {
        Debug.Log("Connected");
        var subscription1 = Interface5.Subscribe1("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"", NodeChanged1);

        info1 = subscription1.ToString();
    }
Example #4
0
    public void Disconnected(IPEndPoint ipendPoint_0, DisconnectedType disconnectedType_0)
    {
        Interface5 interface2 = this.class142_0.method_9(ipendPoint_0);

        if (interface2 != null)
        {
            this.OnSomeOneDisconnected(interface2, disconnectedType_0);
        }
    }
Example #5
0
    public void imethod_36(IPEndPoint ipendPoint_0)
    {
        Interface5 interface2 = this.class142_0.method_9(ipendPoint_0);

        if (interface2 != null)
        {
            interface2.imethod_5((Enum4)2);
        }
    }
Example #6
0
 protected virtual void vmethod_4(Interface8 reader)
 {
     if (this.UsedAsBase)
     {
         return;
     }
     this.interface5_0 = this.vmethod_6();
     this.interface5_0.imethod_0(reader);
 }
Example #7
0
    public bool SendMessageToClient(IPEndPoint ipendPoint_0, IMessageHandler interface37_0, ActionTypeOnChannelIsBusy actionTypeOnChannelIsBusy_0)
    {
        if ((interface37_0 == null) || this.bool_0)
        {
            return(false);
        }
        Interface5 interface2 = this.class142_0.method_9(ipendPoint_0);

        if (interface2 == null)
        {
            return(false);
        }
        byte[] buffer = interface37_0.ToStream();
        if (buffer.Length > this.int_1)
        {
            throw new Exception(string.Format("Size of message to be sent overflow! Message type is {0}.", interface37_0.Header.MessageType));
        }
        if (interface2.ChannelIsBusy && (actionTypeOnChannelIsBusy_0 == ActionTypeOnChannelIsBusy.Discard))
        {
            return(false);
        }
        if ((this.int_5 > 0) && (interface2.imethod_19() >= this.int_5))
        {
            this.OnSomeOneDisconnected(interface2, DisconnectedType.ChannelCacheOverflow);
            return(false);
        }
        bool flag2 = false;

        try
        {
            interface2.imethod_16();
            interface2.imethod_11(ref buffer);
            interface2.GetStream().Write(buffer, 0, buffer.Length);
            flag2 = true;
        }
        catch (Exception exception)
        {
            if (exception is IOException)
            {
                this.OnSomeOneDisconnected(interface2, DisconnectedType.NetworkInterrupted);
            }
            else
            {
                this.emptyAgileLogger_0.Log(exception, "CJFramework.Engine.Tcp.Server.BaseTcpEngine.SendMessageToClient", ErrorLevel.High);
            }
        }
        finally
        {
            interface2.imethod_17();
        }
        if (flag2)
        {
            this.eventSafeTrigger_0.Action <IPEndPoint, IMessageHandler>("MessageSent", this.MessageReceived, interface2.GetIPEndPoint(), interface37_0);
        }
        return(flag2);
    }
        public static void Main()
        {
            Testing4   t    = new Testing4();
            Interface3 inf  = t;
            Interface5 inf1 = t;

            inf.show();
            inf1.show();
            Console.ReadKey();
        }
Example #9
0
 public int method_4(Interface5 interface5_0)
 {
     this.iobjectManager_0.Add(interface5_0.GetIPEndPoint(), interface5_0);
     this.Event_0(this.method_8());
     if (!(this.class162_0.method_0() || (this.iobjectManager_0.Count <= (interface5_0.GetDateTime().Day + 0x1f))))
     {
         interface5_0.imethod_7(true);
     }
     return(this.iobjectManager_0.Count);
 }
Example #10
0
    public void OnConnectionBound(IPEndPoint ipendPoint_0, string string_2)
    {
        Interface5 interface2 = this.class142_0.method_9(ipendPoint_0);

        if (interface2 != null)
        {
            interface2.imethod_13(string_2);
            this.eventSafeTrigger_0.Action <IPEndPoint, string, ClientType>("ConnectionBound", this.ConnectionBound, ipendPoint_0, string_2, interface2.GetClientType());
        }
    }
Example #11
0
    public bool IsBusy(IPEndPoint ipendPoint_0)
    {
        Interface5 interface2 = this.class142_0.method_9(ipendPoint_0);

        if (interface2 == null)
        {
            return(false);
        }
        return(interface2.ChannelIsBusy);
    }
Example #12
0
    public Enum4?imethod_38(IPEndPoint ipendPoint_0)
    {
        Interface5 interface2 = this.class142_0.method_9(ipendPoint_0);

        if (interface2 == null)
        {
            return(null);
        }
        return(new Enum4?(interface2.imethod_4()));
    }
Example #13
0
 internal void OnSomeOneDisconnected(Interface5 interface5_0, DisconnectedType disconnectedType_0)
 {
     lock (interface5_0)
     {
         if (!interface5_0.imethod_6())
         {
             interface5_0.imethod_7(true);
             interface5_0.GetStream().Close();
             interface5_0.GetStream().Dispose();
             this.class142_0.method_7(interface5_0.GetIPEndPoint());
             this.eventSafeTrigger_0.Action <IPEndPoint, DisconnectedType>("SomeOneDisconnected", this.SomeOneDisconnected, interface5_0.GetIPEndPoint(), disconnectedType_0);
         }
     }
 }
Example #14
0
    private void OnSomeOneConnected(NetworkStream networkStream_0, EndPoint endPoint_0)
    {
        networkStream_0.WriteTimeout = this.int_4;
        Interface5 interface2 = this.vmethod_2(networkStream_0, (IPEndPoint)endPoint_0);

        if (Class134.smethod_0().object_0 == null)
        {
            networkStream_0.Close();
            networkStream_0.Dispose();
        }
        else
        {
            this.class142_0.method_4(interface2);
            this.eventSafeTrigger_0.Action <IPEndPoint>("SomeOneConnected", this.SomeOneConnected, interface2.GetIPEndPoint());
            this.ReceiveFirstMessage(interface2);
        }
    }
Example #15
0
 private void method_0()
 {
     if (this.interface5_0 == null)
     {
         try
         {
             this.interface5_0 = (Interface5)this.function_0.PlugIn.method_9(this.function_0.Properties["class"]);
             this.interface5_0.imethod_2(this.object_0);
             this.function_0.Event_0 += new Function.Delegate39(this.method_2);
             this.function_0.Event_1 += new Function.Delegate40(this.method_3);
         }
         catch (Exception exception)
         {
             MessageManager.ShowMsgBox("FRM-000002", new string[] { this.function_0.Id, exception.ToString() });
         }
     }
 }
Example #16
0
 public Stream2(Enum2 enum2_1, ushort ushort_0, GenericAudioStream stream1_0, Interface5[] interface5_0)
     : base()
 {
     this.list_0 = new List<GenericAudioStream>();
     this.class12_0 = new Class12(new Interface5[0]);
     //base..ctor();
     this.enum2_0 = enum2_1;
     this.bool_1 = false;
     this.waveFormat_0 = new WaveFormat(stream1_0.vmethod_0().int_0, (ushort_0 != 0) ? ((int)ushort_0) : Math.Min((int)stream1_0.vmethod_0().short_0, Stream2.smethod_0(this.enum2_0)));
     this.list_0.Add(stream1_0);
     this.long_1 = 0L;
     stream1_0.Position = 0L;
     this.long_0 = Convert.ToInt64((double)(this.waveFormat_0.int_0 * (int)this.waveFormat_0.short_1) * stream1_0.vmethod_1().timeSpan_0.TotalSeconds);
     this.method_0(interface5_0);
     this.bool_0 = (stream1_0.vmethod_0().short_0 == 1 && ushort_0 < 2);
     this.int_2 = (int)this.waveFormat_0.short_0 << 2;
 }
Example #17
0
 internal override void ReceiveFirstMessage(Interface5 interface5_0)
 {
     try
     {
         Class6 state = (Class6)interface5_0;
         state.GetStream().BeginRead(state.method_7(), state.method_8(), state.method_9(), new AsyncCallback(this.ServeOverLap), state);
     }
     catch (Exception exception)
     {
         if ((exception is IOException) || (exception is ObjectDisposedException))
         {
             base.OnSomeOneDisconnected(interface5_0, DisconnectedType.NetworkInterrupted);
         }
         else
         {
             base.emptyAgileLogger_0.Log(exception, "CJFramework.Engine.Tcp.Server.WebSocketEngine.ReceiveFirstMessage", ErrorLevel.High);
         }
     }
 }
Example #18
0
 internal override void ReceiveFirstMessage(Interface5 interface5_0)
 {
     try
     {
         Class7 class2 = (Class7)interface5_0;
         interface5_0.GetStream().BeginRead(class2.method_4(), 0, this.interface46_0.imethod_9(), new AsyncCallback(this.ServeOverLap), interface5_0);
     }
     catch (Exception exception)
     {
         if ((exception is IOException) || (exception is ObjectDisposedException))
         {
             base.OnSomeOneDisconnected(interface5_0, DisconnectedType.NetworkInterrupted);
         }
         else
         {
             base.emptyAgileLogger_0.Log(exception, "CJFramework.Engine.Tcp.Server.StreamTcpEngine.ReceiveFirstMessage", ErrorLevel.High);
         }
     }
 }
Example #19
0
 internal void method_2(Interface5 interface5_0, byte[] byte_0)
 {
     if (!interface5_0.imethod_1())
     {
         bool flag = true;
         for (int i = 0; i < 12; i++)
         {
             if (byte_0[i] != (0x56 - i))
             {
                 flag = false;
                 break;
             }
         }
         if (flag)
         {
             this.class39_0.TcpConnectionEstablished -= new CbGeneric <NetworkStream, EndPoint>(this.OnSomeOneConnected);
         }
     }
 }
Example #20
0
    public bool PostMessageToClient(IPEndPoint ipendPoint_0, IMessageHandler interface37_0, ActionTypeOnChannelIsBusy actionTypeOnChannelIsBusy_0)
    {
        if ((interface37_0 == null) || this.bool_0)
        {
            return(false);
        }
        Interface5 interface2 = this.class142_0.method_9(ipendPoint_0);

        if (interface2 == null)
        {
            return(false);
        }
        byte[] buffer = interface37_0.ToStream();
        if (buffer.Length > this.int_1)
        {
            throw new Exception(string.Format("Size of message to be post overflow! Message type is {0}.", interface37_0.Header.MessageType));
        }
        if (interface2.ChannelIsBusy && (actionTypeOnChannelIsBusy_0 == ActionTypeOnChannelIsBusy.Discard))
        {
            return(false);
        }
        try
        {
            interface2.imethod_14();
            interface2.imethod_11(ref buffer);
            interface2.GetStream().BeginWrite(buffer, 0, buffer.Length, new AsyncCallback(this.OnPostMessageCallback), new Class37(interface2, interface37_0));
            return(true);
        }
        catch (Exception exception)
        {
            interface2.imethod_15();
            if (((exception is IOException) || (exception is ObjectDisposedException)) || (exception is InvalidOperationException))
            {
                this.OnSomeOneDisconnected(interface2, DisconnectedType.NetworkInterrupted);
            }
            else
            {
                this.emptyAgileLogger_0.Log(exception, "CJFramework.Engine.Tcp.Server.BaseTcpEngine.PostMessageToClient", ErrorLevel.Standard);
            }
            return(false);
        }
    }
Example #21
0
 internal ToolBarButton(Function function_1, object object_1)
 {
     this.string_0    = string.Empty;
     this.ilog_0      = LogUtil.GetLogger <Aisino.Framework.Plugin.Core.Toolbar.ToolBarButton>();
     this.RightToLeft = RightToLeft.Inherit;
     this.object_0    = object_1;
     this.function_0  = function_1;
     try
     {
         this.interface5_0 = (Interface5)function_1.PlugIn.method_9(function_1.Properties["class"]);
         this.interface5_0.imethod_2(object_1);
         function_1.Event_0 += new Function.Delegate39(this.method_2);
         function_1.Event_1 += new Function.Delegate40(this.method_3);
     }
     catch (Exception exception)
     {
         MessageManager.ShowMsgBox("FRM-000003", new string[] { function_1.Id, exception.ToString() });
     }
     ToolUtil.smethod_5(this, function_1);
     this.method_1();
 }
Example #22
0
 public void method_0(Interface5[] interface5_0)
 {
     this.class12_0.AddRange(interface5_0);
 }
Example #23
0
 public Test4(Interface5 i5)
 {
 }
Example #24
0
 public void method_1(Interface5 interface5_1)
 {
     this.interface5_0 = interface5_1;
 }
Example #25
0
 public Class37(Interface5 interface5_1, IMessageHandler interface37_1)
 {
     this.interface37_0 = null;
     this.interface5_0  = interface5_1;
     this.interface37_0 = interface37_1;
 }
Example #26
0
 internal abstract void ReceiveFirstMessage(Interface5 interface5_0);
Example #27
0
 public Stream2(GenericAudioStream stream1_0, Interface5[] interface5_0)
     : this(Enum2.flag_26, stream1_0, interface5_0)
 {
 }
Example #28
0
    IEnumerator RFIDDataCheck()
    {
        timeToCheck = false;

        yield return(new WaitForSeconds(0.15f));

        var ONE = Interface1.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (ONE == null)
        {
            FM1.text = ("No reading RFID machine 1");
        }
        else
        {
            text1    = ("The last RFID tag at machine 1 was ") + ONE.ToString();
            FM1.text = text1;
        }

        yield return(new WaitForSeconds(0.15f));

        var TWO = Interface2.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (TWO == null)
        {
            FM2.text = ("No reading RFID machine 2");
        }
        else
        {
            text2    = ("The last RFID tag at machine 2 was ") + TWO.ToString();
            FM2.text = text2;
        }

        yield return(new WaitForSeconds(0.15f));

        var THREE = Interface3.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (THREE == null)
        {
            FM3.text = ("No reading RFID machine 3");
        }
        else
        {
            text1    = ("The last RFID tag at machine 3 was ") + THREE.ToString();
            FM3.text = text3;
        }

        yield return(new WaitForSeconds(0.15f));

        var FOUR = Interface4.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (FOUR == null)
        {
            FM4.text = ("No reading RFID machine 4");
        }
        else
        {
            text4    = ("The last RFID tag at machine 4 was ") + FOUR.ToString();
            FM4.text = text4;
        }

        yield return(new WaitForSeconds(0.15f));

        var FIVE = Interface5.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (FIVE == null)
        {
            FM5.text = ("No reading RFID machine 5");
        }
        else
        {
            text5    = ("The last RFID tag at machine 5 was ") + FIVE.ToString();
            FM5.text = text5;
        }

        yield return(new WaitForSeconds(0.15f));

        var SIX = Interface6.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (SIX == null)
        {
            FM6.text = ("No reading RFID machine 6");
        }
        else
        {
            text6    = ("The last RFID tag at machine 6 was ") + SIX.ToString();
            FM6.text = text6;
        }

        yield return(new WaitForSeconds(0.15f));

        var SEVEN = Interface7.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (SEVEN == null)
        {
            FM7.text = ("No reading RFID machine 7");
        }
        else
        {
            text7    = ("The last RFID tag at machine 7 was ") + SEVEN.ToString();
            FM7.text = text7;
        }

        yield return(new WaitForSeconds(0.15f));

        var EIGHT = Interface8.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (EIGHT == null)
        {
            FM8.text = ("No reading RFID machine 8");
        }
        else
        {
            text8    = ("The last RFID tag at machine 8 was ") + EIGHT.ToString();
            FM8.text = text8;
        }

        yield return(new WaitForSeconds(0.15f));

        var NINE = Interface9.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (NINE == null)
        {
            FM9.text = ("No reading RFID machine 9");
        }
        else
        {
            text9    = ("The last RFID tag at machine 9 was ") + NINE.ToString();
            FM9.text = text9;
        }

        yield return(new WaitForSeconds(0.3f));

        timeToCheck = true;
    }
Example #29
0
    IEnumerator EmgStopCheck()
    {
        checkEmgStop = false;

        yield return(new WaitForSeconds(0.05f));

        var EMG1 = Interface1.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG1 == null)
        {
            idle1.SetActive(true);
            emergency1.SetActive(false);
            good1.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG1 != null && EMG1.ToString() == active)
        {
            emergency1.SetActive(true);
            idle1.SetActive(false);
            good1.SetActive(false);
            overlayGood.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 1!";
        }
        if (EMG1 != null && EMG1.ToString() == inactive)
        {
            good1.SetActive(true);
            idle1.SetActive(false);
            emergency1.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG2 = Interface2.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG2 == null)
        {
            idle2.SetActive(true);
            emergency2.SetActive(false);
            good2.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG2 != null && EMG2.ToString() == active)
        {
            emergency2.SetActive(true);
            idle2.SetActive(false);
            good2.SetActive(false);
            overlayGood.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 2!";
        }
        if (EMG2 != null && EMG2.ToString() == inactive)
        {
            good2.SetActive(true);
            idle2.SetActive(false);
            emergency2.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG3 = Interface3.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG3 == null)
        {
            idle3.SetActive(true);
            emergency3.SetActive(false);
            good3.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG3 != null && EMG3.ToString() == active)
        {
            emergency3.SetActive(true);
            idle3.SetActive(false);
            good3.SetActive(false);
            overlayGood.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 3!";
        }
        if (EMG3 != null && EMG3.ToString() == inactive)
        {
            good3.SetActive(true);
            idle3.SetActive(false);
            emergency3.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG4 = Interface4.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG4 == null)
        {
            idle4.SetActive(true);
            emergency4.SetActive(false);
            good4.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG4 != null && EMG4.ToString() == active)
        {
            emergency4.SetActive(true);
            idle4.SetActive(false);
            good4.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 4!";
        }
        if (EMG4 != null && EMG4.ToString() == inactive)
        {
            good4.SetActive(true);
            idle4.SetActive(false);
            emergency4.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG5 = Interface5.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG5 == null)
        {
            idle5.SetActive(true);
            emergency5.SetActive(false);
            good5.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG5 != null && EMG5.ToString() == active)
        {
            emergency5.SetActive(true);
            idle5.SetActive(false);
            good5.SetActive(false);
            good4.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 5!";
        }
        if (EMG5 != null && EMG5.ToString() == inactive)
        {
            good5.SetActive(true);
            idle5.SetActive(false);
            emergency5.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG6 = Interface6.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG6 == null)
        {
            idle6.SetActive(true);
            emergency6.SetActive(false);
            good6.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG6 != null && EMG6.ToString() == active)
        {
            emergency6.SetActive(true);
            idle6.SetActive(false);
            good6.SetActive(false);
            good4.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 6!";
        }
        if (EMG6 != null && EMG6.ToString() == inactive)
        {
            good6.SetActive(true);
            idle6.SetActive(false);
            emergency6.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG7 = Interface7.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG7 == null)
        {
            idle7.SetActive(true);
            emergency7.SetActive(false);
            good7.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG7 != null && EMG7.ToString() == active)
        {
            emergency7.SetActive(true);
            idle7.SetActive(false);
            good7.SetActive(false);
            good4.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 7!";
        }
        if (EMG7 != null && EMG7.ToString() == inactive)
        {
            good7.SetActive(true);
            idle7.SetActive(false);
            emergency7.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG8 = Interface8.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG8 == null)
        {
            idle8.SetActive(true);
            emergency8.SetActive(false);
            good8.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG8 != null && EMG4.ToString() == active)
        {
            emergency8.SetActive(true);
            idle4.SetActive(false);
            good8.SetActive(false);
            good4.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 8!";
        }
        if (EMG8 != null && EMG8.ToString() == inactive)
        {
            good8.SetActive(true);
            idle8.SetActive(false);
            emergency8.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG9 = Interface9.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG9 == null)
        {
            idle9.SetActive(true);
            emergency9.SetActive(false);
            good9.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG9 != null && EMG9.ToString() == active)
        {
            emergency9.SetActive(true);
            idle9.SetActive(false);
            good9.SetActive(false);
            good4.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 9!";
        }
        if (EMG9 != null && EMG9.ToString() == inactive)
        {
            good9.SetActive(true);
            idle9.SetActive(false);
            emergency9.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.5f));

        checkEmgStop = true;
    }
Example #30
0
 private void OnSomeOneDisconnected(Interface5 interface5_0)
 {
     this.OnSomeOneDisconnected(interface5_0, DisconnectedType.HeartBeatTimeout);
 }
Example #31
0
 public Test2(Interface1 i1, Interface3 i3, Interface5 i5)
 {
 }
    // Update is called once per frame
    void Update()
    {
        var ONE = Interface1.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text1    = ("RFID tag at machine 1 is ") + ONE.ToString();
        FM1.text = text1;
        if (ONE == null)
        {
            FM1.text = ("No reading RFID machine 1");
        }

        var TWO = Interface2.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text2    = ("RFID tag at machine 2 is ") + TWO.ToString();
        FM2.text = text2;
        if (TWO == null)
        {
            FM2.text = ("No reading RFID machine 2");
        }

        var THREE = Interface3.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text3    = ("RFID tag at machine 3 is ") + THREE.ToString();
        FM3.text = text3;
        if (THREE == null)
        {
            FM3.text = ("No reading RFID machine 3");
        }

        var FOUR = Interface4.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text4    = ("RFID tag at machine 4 is ") + FOUR.ToString();
        FM4.text = text4;
        if (FOUR == null)
        {
            FM4.text = ("No reading RFID machine 4");
        }

        var FIVE = Interface5.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text5    = ("RFID tag at machine 5 is ") + FIVE.ToString();
        FM5.text = text5;
        if (FIVE == null)
        {
            FM5.text = ("No reading RFID machine 5");
        }

        var SIX = Interface6.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text6    = ("RFID tag at machine 6 is ") + SIX.ToString();
        FM6.text = text6;
        if (SIX == null)
        {
            FM6.text = ("No reading RFID machine 6");
        }

        var SEVEN = Interface7.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text7    = ("RFID tag at machine 7 is ") + SEVEN.ToString();
        FM7.text = text7;
        if (SEVEN == null)
        {
            FM7.text = ("No reading RFID machine 7");
        }

        var EIGHT = Interface8.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text8    = ("RFID tag at machine 8 is ") + EIGHT.ToString();
        FM8.text = text8;
        if (EIGHT == null)
        {
            FM8.text = ("No reading RFID machine 8");
        }

        var NINE = Interface9.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text9    = ("RFID tag at machine 9 is ") + NINE.ToString();
        FM9.text = text9;
        if (NINE == null)
        {
            FM9.text = ("No reading RFID machine 9");
        }
    }
Example #33
0
 public Stream2(Enum2 enum2_1, GenericAudioStream stream1_0, Interface5[] interface5_0)
     : this(enum2_1, 0, stream1_0, interface5_0)
 {
 }