public CommunicationManager(IntAirAct.IAIntAirAct intAirAct, PairingRecognizer pairingRecognizer, MSELocator.LocatorInterface locator, PersonManager personManager) { this.intAirAct = intAirAct; this.pairingRecognizer = pairingRecognizer; this.locator = locator; this.personManager = personManager; // Pairing intAirAct.Route(Routes.RequestPairingRoute, new Action <IARequest, IAResponse>(UpdateDevicePairingState)); // Properties of Devices intAirAct.Route(Routes.GetOffsetAngleRoute, new Action <IARequest, IAResponse>(GetOffsetAngle)); intAirAct.Route(Routes.SetOrientationRoute, new Action <IARequest, IAResponse>(UpdateDeviceOrientation)); intAirAct.Route(Routes.SetLocationRoute, new Action <IARequest, IAResponse>(UpdateDeviceLocation)); // Locating Devices intAirAct.Route(Routes.GetDeviceInfoRoute, new Action <IARequest, IAResponse>(GetDevice)); intAirAct.Route(Routes.GetAllDeviceInfoRoute, new Action <IARequest, IAResponse>(GetDevices)); intAirAct.Route(Routes.GetNearestDeviceInViewRoute, new Action <IARequest, IAResponse>(GetNearestDeviceInView)); intAirAct.Route(Routes.GetAllDevicesInViewRoute, new Action <IARequest, IAResponse>(GetDevicesInView)); intAirAct.Route(Routes.GetNearestDeviceInRangeRoute, new Action <IARequest, IAResponse>(GetNearestDeviceInRange)); intAirAct.Route(Routes.GetAllDevicesInRangeRoute, new Action <IARequest, IAResponse>(GetDevicesInRange)); /* Depricated!!! * intAirAct.Route(Routes.GetAllDevicesWithIntersectionPointsRoute, new Action<IARequest, IAResponse>(GetDevicesWithIntersectionPoint)); */ }
public CommunicationManager(IntAirAct.IAIntAirAct intAirAct, PairingRecognizer pairingRecognizer, MSELocator.LocatorInterface locator, PersonManager personManager) { this.intAirAct = intAirAct; this.pairingRecognizer = pairingRecognizer; this.locator = locator; this.personManager = personManager; // Pairing intAirAct.Route(Routes.RequestPairingRoute, new Action<IARequest, IAResponse>(UpdateDevicePairingState)); // Properties of Devices intAirAct.Route(Routes.GetOffsetAngleRoute, new Action<IARequest, IAResponse>(GetOffsetAngle)); intAirAct.Route(Routes.SetOrientationRoute, new Action<IARequest, IAResponse>(UpdateDeviceOrientation)); intAirAct.Route(Routes.SetLocationRoute, new Action<IARequest, IAResponse>(UpdateDeviceLocation)); // Locating Devices intAirAct.Route(Routes.GetDeviceInfoRoute, new Action<IARequest, IAResponse>(GetDevice)); intAirAct.Route(Routes.GetAllDeviceInfoRoute, new Action<IARequest, IAResponse>(GetDevices)); intAirAct.Route(Routes.GetNearestDeviceInViewRoute, new Action<IARequest, IAResponse>(GetNearestDeviceInView)); intAirAct.Route(Routes.GetAllDevicesInViewRoute, new Action<IARequest, IAResponse>(GetDevicesInView)); intAirAct.Route(Routes.GetNearestDeviceInRangeRoute, new Action<IARequest, IAResponse>(GetNearestDeviceInRange)); intAirAct.Route(Routes.GetAllDevicesInRangeRoute, new Action<IARequest, IAResponse>(GetDevicesInRange)); /* Depricated!!! intAirAct.Route(Routes.GetAllDevicesWithIntersectionPointsRoute, new Action<IARequest, IAResponse>(GetDevicesWithIntersectionPoint)); */ }
public MSEKinectManager(bool RequireKinect = false) { if (RequireKinect) TestKinectAvailability(); //Instantiate Components intAirAct = IAIntAirAct.New(); locator = new Locator(); pairingRecognizer = new PairingRecognizer(locator, intAirAct); gestureController = new GestureController(); personManager = new PersonManager(locator, gestureController, intAirAct); deviceManager = new DeviceManager(locator, intAirAct); }
public MSEKinectManager(bool RequireKinect = false) { if (RequireKinect) { TestKinectAvailability(); } //Instantiate Components intAirAct = IAIntAirAct.New(); locator = new Locator(); pairingRecognizer = new PairingRecognizer(locator, intAirAct); gestureController = new GestureController(); personManager = new PersonManager(locator, gestureController, intAirAct); deviceManager = new DeviceManager(locator, intAirAct); }
public void AttemptPairingTestSingleState() { PairingRecognizer target = new PairingRecognizer(null, null); List<PairableDevice> devices = new List<PairableDevice>(); devices.Add(CreateTestDevice(1, null, PairingState.PairingAttempt)); List<PairablePerson> persons = new List<PairablePerson>(); persons.Add(CreateTestPerson(2, null, PairingState.NotPaired)); bool expected = false; bool actual = target.AttemptPairing(devices, persons); Assert.AreEqual(expected, actual); Assert.IsTrue(devices[0].PairingState == PairingState.PairingAttempt); Assert.IsTrue(persons[0].PairingState == PairingState.NotPaired); }