コード例 #1
0
ファイル: VehicleRrAloha.cs プロジェクト: AkashBaidya/SIMITS
 public VehicleRrAloha(Coordinate initialPosition, int numId, Color color, VehicleType type,
     MacTypes mac, Trajectories tray, Coordinate limit, int timeDivisions, int frequencyDivisions)
     : base(initialPosition, numId, color, type, mac, tray, limit)
 {
     this.timeSegments = timeDivisions;
     this.frequencySegments = frequencyDivisions;
     this.FrameInformation = new int[this.timeSegments, this.frequencySegments];
     this.AlreadyTx = false;
 }
コード例 #2
0
ファイル: VehicleRrAloha.cs プロジェクト: AkashBaidya/SIMITS
 public VehicleRrAloha(Coordinate initialPosition, int numId, Color color, VehicleType type,
                       MacTypes mac, Trajectories tray, Coordinate limit, int timeDivisions, int frequencyDivisions)
     : base(initialPosition, numId, color, type, mac, tray, limit)
 {
     this.timeSegments      = timeDivisions;
     this.frequencySegments = frequencyDivisions;
     this.FrameInformation  = new int[this.timeSegments, this.frequencySegments];
     this.AlreadyTx         = false;
 }
コード例 #3
0
ファイル: VehicleNccma.cs プロジェクト: AkashBaidya/SIMITS
        public VehicleNccma(Coordinate initialPosition, int numId, Color color, VehicleType type, MacTypes mac,
            Trajectories tray, Coordinate limit, int timeDivisions, int frequencyDivisions) : 
            base(initialPosition, numId,color,type,mac,tray,limit,timeDivisions,frequencyDivisions)
        {
            this.Cost = new double[this.totalRegions-1]; //the auxiliary exploration is not performed on the transmission region
            this.ExplorationHistoryLength = 20;

            this.NonAccessMaximumValue = 4;

            this.Weight = 0.7;
            this.ExplorationCost = 0.2;
            this.Slope = 10.0;
            this.Attenuation = 0.9;
            this.Displacement = 10;

            this.NonZeroRatio = 1;
        }
コード例 #4
0
ファイル: VehicleTdmaGt.cs プロジェクト: AkashBaidya/SIMITS
        public VehicleTdmaGt(Coordinate initialPosition, int numId, Color color, VehicleType type, MacTypes mac, 
            Trajectories tray, Coordinate limit, int timeDivisions, int frequencyDivisions)
        {

            this.Id = numId;
            this.VehicleColor = color;
            this.Type = type;
            this.Mac = mac;

            this.PositionX = initialPosition.X;
            this.PositionY = initialPosition.Y;

            this.TrajectoryType = tray;
            this.Limit = limit;

            this.timeSegments = timeDivisions;
            this.frequencySegments = frequencyDivisions;
            this.totalRegions = this.timeSegments * this.frequencySegments;

            this.Alfa = 0.4;
            this.Beta = 0.3;
            this.Rho = 1.4;
            this.Sigma = 1.3;

            this.MaximumValue = 10;
            this.MinimumValue = 0.2;
            this.Summatory = this.MaximumValue + this.totalRegions * this.MinimumValue;
            this.NonZeroRatio = 0.5;

            this.lastAcess = -1;

            this.EstimationMatrix = new double[this.timeSegments, this.frequencySegments];

            this.initEstimationMatrix();

        }
コード例 #5
0
ファイル: Vehicle.cs プロジェクト: AkashBaidya/SIMITS
 public Vehicle(Coordinate initialPosition, int numId, Color color, VehicleType type, MacTypes mac, 
     Trajectories tray, Coordinate limit)
     : this(initialPosition.X, initialPosition.Y)
 {
     this.Id = numId;
     this.VehicleColor = color;
     this.Type = type;
     this.Mac = mac;
     this.TrajectoryType = tray;
     this.Limit = limit;
 }
コード例 #6
0
ファイル: Simits2.cs プロジェクト: AkashBaidya/SIMITS
        private Scenario setSpecialModeScenario(string title, MacTypes mac)
        {
            Scenario specialModeScenario = new Scenario(title);
            specialModeScenario.MediumAccessControl = mac;
            specialModeScenario.MainMap = new Map(SPECIAL_MODE_X_DIM, SPECIAL_MODE_Y_DIM);
            specialModeScenario.MainSpectrum = new Spectrum(SPECIAL_MODE_TIME_SEGMENTS, SPECIAL_MODE_FREQ_SEGMENTS);
            specialModeScenario.InterferenceSpectrum = new Spectrum(SPECIAL_MODE_TIME_SEGMENTS, SPECIAL_MODE_FREQ_SEGMENTS);
            specialModeScenario.SimulationTime.TimeSegments = SPECIAL_MODE_TIME_SEGMENTS;
            specialModeScenario.SimulationTime.FrequencySegments = SPECIAL_MODE_FREQ_SEGMENTS;
            specialModeScenario.SimulationTime.CyclesPerRegion = SPECIAL_MODE_CYCLES_PER_REGION;
            this.ApplyScenario(specialModeScenario, SPECIAL_MODE_SIM_DELAY, SPECIAL_MODE_VEHICLES);
            this.afterApplyScenarioConfiguration();
            return specialModeScenario;

        }
コード例 #7
0
ファイル: Vehicle.cs プロジェクト: AkashBaidya/SIMITS
 public Vehicle(Coordinate initialPosition, int numId, Color color, VehicleType type, MacTypes mac,
                Trajectories tray, Coordinate limit)
     : this(initialPosition.X, initialPosition.Y)
 {
     this.Id             = numId;
     this.VehicleColor   = color;
     this.Type           = type;
     this.Mac            = mac;
     this.TrajectoryType = tray;
     this.Limit          = limit;
 }
コード例 #8
0
        public VehicleTdmaGt(Coordinate initialPosition, int numId, Color color, VehicleType type, MacTypes mac,
                             Trajectories tray, Coordinate limit, int timeDivisions, int frequencyDivisions)
        {
            this.Id           = numId;
            this.VehicleColor = color;
            this.Type         = type;
            this.Mac          = mac;

            this.PositionX = initialPosition.X;
            this.PositionY = initialPosition.Y;

            this.TrajectoryType = tray;
            this.Limit          = limit;

            this.timeSegments      = timeDivisions;
            this.frequencySegments = frequencyDivisions;
            this.totalRegions      = this.timeSegments * this.frequencySegments;

            this.Alfa  = 0.4;
            this.Beta  = 0.3;
            this.Rho   = 1.4;
            this.Sigma = 1.3;

            this.MaximumValue = 10;
            this.MinimumValue = 0.2;
            this.Summatory    = this.MaximumValue + this.totalRegions * this.MinimumValue;
            this.NonZeroRatio = 0.5;

            this.lastAcess = -1;

            this.EstimationMatrix = new double[this.timeSegments, this.frequencySegments];

            this.initEstimationMatrix();
        }
コード例 #9
0
        public VehicleNccma(Coordinate initialPosition, int numId, Color color, VehicleType type, MacTypes mac,
                            Trajectories tray, Coordinate limit, int timeDivisions, int frequencyDivisions) :
            base(initialPosition, numId, color, type, mac, tray, limit, timeDivisions, frequencyDivisions)
        {
            this.Cost = new double[this.totalRegions - 1]; //the auxiliary exploration is not performed on the transmission region
            this.ExplorationHistoryLength = 20;

            this.NonAccessMaximumValue = 4;

            this.Weight          = 0.7;
            this.ExplorationCost = 0.2;
            this.Slope           = 10.0;
            this.Attenuation     = 0.9;
            this.Displacement    = 10;

            this.NonZeroRatio = 1;
        }