Beispiel #1
0
        public void RandomDeplayment(int sinkIndex)
        {
            int rootNodeId = sinkIndex;

            PublicParamerters.SinkNode = myNetWork[rootNodeId];
            GetOverlappingNodes overlappingNodesFinder = new GetOverlappingNodes(myNetWork);

            overlappingNodesFinder.GetOverlappingForAllNodes();

            string PowersString = "γΦ=" + Settings.Default.EnergyDistCnt + ",γd=" + Settings.Default.TransDistanceDistCnt + ", γθ=" + Settings.Default.DirectionDistCnt + ", γψ=" + Settings.Default.PrepDistanceDistCnt;

            lbl_hops_dis_network_info.Content = PublicParamerters.NetworkName + "," + PowersString;
            isCoverageSelected        = true;
            PublicParamerters.Density = Density.GetDensity(myNetWork);
            DisplaySimulationParameters(rootNodeId, "Random");
            Settings.Default.ZoneWidthCnt = PublicParamerters.RoutingZoneWidth;
            Settings.Default.IsIntialized = true;
        }
Beispiel #2
0
        public void ZigzagCoverage(int sinkIndex)
        {
            int rootNodeId = sinkIndex;

            PublicParamerters.SinkNode = myNetWork[rootNodeId];
            ZizageCoverage zig = new ZizageCoverage();

            zig.coverage(Canvas_SensingFeild, myNetWork, Convert.ToInt16(2 * Sensor.SR));
            GetOverlappingNodes overlappingNodesFinder = new GetOverlappingNodes(myNetWork);

            overlappingNodesFinder.GetOverlappingForAllNodes();

            string PowersString = "γΦ=" + Settings.Default.EnergyDistCnt + ",γd=" + Settings.Default.TransDistanceDistCnt + ", γθ=" + Settings.Default.DirectionDistCnt + ", γψ=" + Settings.Default.PrepDistanceDistCnt;

            lbl_hops_dis_network_info.Content = PublicParamerters.NetworkName + "," + PowersString;
            isCoverageSelected        = true;
            PublicParamerters.Density = Density.GetDensity(myNetWork);
            DisplaySimulationParameters(rootNodeId, "Zigzag");
            Settings.Default.ZoneWidthCnt = PublicParamerters.RoutingZoneWidth;
            Settings.Default.IsIntialized = true;
        }
        public void GridCoverag1(int sinkIndex)
        {
            PublicParamerters.NumberofNodes = myNetWork.Count;
            int rootNodeId = sinkIndex;

            PublicParamerters.SinkNode = myNetWork[rootNodeId];
            GridCoverage GridCoverage = new Coverage.GridCoverage();

            GridCoverage.GridCoverage1(Canvas_SensingFeild, myNetWork, Convert.ToInt16((Sensor.SR * 2) * 0.7));
            GetOverlappingNodes overlappingNodesFinder = new GetOverlappingNodes(myNetWork);

            overlappingNodesFinder.GetOverlappingForAllNodes();

            string PowersString = "γΦ=" + Settings.Default.EnergyDistCnt + ",γd=" + Settings.Default.TransDistanceDistCnt + ", γθ=" + Settings.Default.DirectionDistCnt + ", γψ=" + Settings.Default.PrepDistanceDistCnt;

            lbl_hops_dis_network_info.Content = PublicParamerters.NetworkName + "," + PowersString;
            isCoverageSelected         = true;
            PublicParamerters.Density  = Density.GetDensity(myNetWork);
            Settings.Default.ZoneWidth = PublicParamerters.CandidateZoneWidth;
            DisplaySimulationParameters(rootNodeId, "grid_coverag_1");

            EngageMacProcol();
        }
        public void RandomDeplayment(int sinkIndex)
        {
            PublicParamerters.NumberofNodes = myNetWork.Count;
            int rootNodeId = sinkIndex;

            PublicParamerters.SinkNode = myNetWork[rootNodeId];
            GetOverlappingNodes overlappingNodesFinder = new GetOverlappingNodes(myNetWork);

            overlappingNodesFinder.GetOverlappingForAllNodes();

            string PowersString = "γΦ=" + Settings.Default.EnergyDistCnt + ",γd=" + Settings.Default.TransDistanceDistCnt + ", γθ=" + Settings.Default.DirectionDistCnt + ", γψ=" + Settings.Default.PrepDistanceDistCnt;

            lbl_hops_dis_network_info.Content = PublicParamerters.NetworkName + "," + PowersString;
            isCoverageSelected = true;

            PublicParamerters.SensingFeildArea = SensingFeildArea;

            PublicParamerters.Density  = Density.GetDensity(myNetWork);
            Settings.Default.ZoneWidth = PublicParamerters.CandidateZoneWidth;
            DisplaySimulationParameters(rootNodeId, "Random");

            EngageMacProcol();
        }