예제 #1
0
        public void SetupMatrices()
        {
            // execute validation & log
            ValidationResult results = _validator.Validate(this);

            LogValidationErrors(results);

            int size = Items.Count;

            AssociationMatrix.Init(size);
            DistanceMatrix.Init(size);
            RssMatrix.Init(size);
            AngleMatrix.Init(size, new Angle(float.NaN, float.NaN));
        }
예제 #2
0
        public void SetupMatrices()
        {
            // execute validation & log
            var results = new MeshNetworkValidator(this)
                          .Validate()
                          .Result as ValidationResult;

            LogValidationErrors(results);

            int size = _items.Count;

            AssociationMatrix.Init(size);
            DistanceMatrix.Init(size);
            RssMatrix.Init(size);
            AngleMatrix.Init(size, new Angle(float.NaN, float.NaN));
        }