Beispiel #1
0
        /// <exception cref="Exception"></exception>
        private void populateData()
        {
            AppSensorClient appSensorClient = (AppSensorClient)contextClient.GetObject("AppSensorClient");
            AppSensorServer appSensorServer = (AppSensorServer)contextServer.GetObject("AppSensorServer");
            int             delay           = 500;

            detectionPoint1.setId("IE1");
            detectionSystems1.Add(detectionSystem1);

            ServerConfiguration updatedConfiguration = appSensorServer.getConfiguration();

            updatedConfiguration.setDetectionPoints(loadMockedDetectionPoints());
            appSensorServer.setConfiguration(updatedConfiguration);

            Thread.Sleep(delay);
            appSensorClient.getEventManager().addEvent(new Event(bob, detectionPoint1, "localhostme"));
            Thread.Sleep(delay);
            appSensorClient.getEventManager().addEvent(new Event(bob, detectionPoint1, "localhostme"));
            Thread.Sleep(delay);
            appSensorClient.getEventManager().addEvent(new Event(bob, detectionPoint1, "localhostme"));
            Thread.Sleep(delay);
            appSensorClient.getEventManager().addEvent(new Event(bob, detectionPoint1, "localhostme"));
            Thread.Sleep(delay);
            appSensorClient.getEventManager().addEvent(new Event(bob, detectionPoint1, "localhostme"));
            Thread.Sleep(delay);
            appSensorClient.getEventManager().addEvent(new Event(bob, detectionPoint1, "localhostme"));
            Thread.Sleep(delay);
            appSensorClient.getEventManager().addEvent(new Event(bob, detectionPoint1, "localhostme"));
            Thread.Sleep(delay);
        }