示例#1
0
文件: Reactor.cs 项目: hanlray/Choo
        private void Watching(AEIMessage message)
        {
            switch (message.type)
            {
            case AEIMessage.Type.Sensor:
                WatchingSensorMessage((SensorMessage)message);
                break;

            case AEIMessage.Type.JTag:
                WatchingJTagMessage((JTagMessage)message);
                break;
            }
        }
示例#2
0
文件: Reactor.cs 项目: hanlray/Choo
        private void Passing(AEIMessage message)
        {
            switch (message.type)
            {
            case AEIMessage.Type.Sensor:
                PassingSensorMessage((SensorMessage)message);
                break;

            case AEIMessage.Type.KTag:
                PassingKTagMessage((KTagMessage)message);
                break;
            }
        }
示例#3
0
文件: Reactor.cs 项目: hanlray/Choo
        public void OnSensorDataReceived(AEIMessage sensorData)
        {
            switch (state)
            {
            case State.Watching:
                Watching(sensorData);
                break;

            case State.Passing:
                Passing(sensorData);
                break;
            }
        }