Exemple #1
0
        public ProcessprFingerEvents(StationEnvironment Environment)
        {
            m_EventQueue = new Queue <ProcessFingerEvent>();



            m_Environment       = Environment;
            m_Connector_SEN0188 = m_Environment.SensorConnector;

            m_ConfigProcessItems = m_Environment.ConfigProcessItems;

            m_GPIOEnvironmentConnectors = m_Environment.GPIOEnvironmentConnectors;

            m_SEN0188SQLite = m_Environment.SEN0188SQLite;

            m_FingertEventDatabase = m_Environment.FingertEventDatabase;

            m_Connector_SEN0188.NotifyChangeState += Connector_SEN0188_NotifyChangeState;

            for (int i = 0; i < m_GPIOEnvironmentConnectors.EnvironmentConnectors.Count; i++)
            {
                GPIOEnvironmentConnector con = m_GPIOEnvironmentConnectors.EnvironmentConnectors[i];
                if (con.GPIOConnectorEnable)
                {
                    con.GPIOConnector.ChangeGPIOs += GPIOConnector_ChangeGPIOs;
                }
            }

            m_SensorID = "";
        }
        public ProcessorGPIOEvents(StationEnvironment Environment)
        {
            m_EventQueue = new Queue <ProcessGPIOEvents>();


            m_Environment       = Environment;
            m_Connector_SEN0188 = m_Environment.SensorConnector;

            m_ConfigProcessItems = m_Environment.ConfigProcessItems;

            m_GPIOEnvironmentConnectors = m_Environment.GPIOEnvironmentConnectors;

            m_SEN0188SQLite = m_Environment.SEN0188SQLite;

            m_FingertEventDatabase = m_Environment.FingertEventDatabase;

            m_SensorID = "";
            //     m_SensorInitialized = false;
            m_ProcessGPIOEvents = new List <ProcessGPIOEvents>();
        }
        public StationEnvironment()
        {
            m_HostName             = "localhost";
            m_Port                 = 3005;
            m_serDev               = new SerDevice("COM1");
            m_Connector_SEN0188    = new Connector_SEN0188();
            m_SEN0188SQLite        = new SEN0188SQLite();
            m_FingertEventDatabase = new FingertEventDatabase();
            m_SensorOutPutServiceConnectorConfig = new PropertySet();
            m_SensorInputServiceConnectorConfig  = new PropertySet();

            m_GPIOOutPutServiceConnectorConfig = new PropertySet();
            m_GPIOInputServiceConnectorConfig  = new PropertySet();



            m_GPIOInputServiceConnectorConfig.Add("HostName", PropertyValue.CreateString("WilliRaspiPlus"));
            m_GPIOInputServiceConnectorConfig.Add("Port", PropertyValue.CreateInt32(3005));
            m_GPIOInputServiceConnectorConfig.Add("UpdateState", PropertyValue.CreateInt32(0));
            m_GPIOInOutBanks = null;

            m_ConnectorSEN0188Enable = false;

            m_GPIOEnvironmentConnectors = new GPIOEnvironmentConnectors();


            m_ConfigProcessItems  = new ConfigProcessItems(m_GPIOEnvironmentConnectors);
            m_ProcessorGPIOEvents = new ProcessorGPIOEvents(this);

            m_SensorConnecorInitialized = false;
            m_GPIOConnecorInitialized   = false;
            m_SensorInitialized         = false;
            m_IsLoggedIn   = false;
            m_isAuthorized = false;
            m_user         = null;
            m_PeriodicTimerDelFingerEvents = null;
            m_EventHistoryinDays           = 14; // 14 Tage
        }
 public ConfigProcessItems(GPIOEnvironmentConnectors environmentConnectors)
 {
     //    m_ProcessItems = new ObservableCollection<ConfigProcessItem>();
     m_GPIOEnvironmentConnectors = environmentConnectors;
 }