⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainform.cs

📁 ACO.zip是一个蚁群优化算法
💻 CS
📖 第 1 页 / 共 4 页
字号:
			dotnetCHARTING.WinForms.LegendEntry legendEntry3 = new dotnetCHARTING.WinForms.LegendEntry();
			dotnetCHARTING.WinForms.Element element2 = new dotnetCHARTING.WinForms.Element();
			dotnetCHARTING.WinForms.LegendEntry legendEntry4 = new dotnetCHARTING.WinForms.LegendEntry();
			dotnetCHARTING.WinForms.ChartArea chartArea2 = new dotnetCHARTING.WinForms.ChartArea();
			dotnetCHARTING.WinForms.Element element3 = new dotnetCHARTING.WinForms.Element();
			dotnetCHARTING.WinForms.LegendEntry legendEntry5 = new dotnetCHARTING.WinForms.LegendEntry();
			this.Ticker = new System.Windows.Forms.Timer(this.components);
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tabPage1 = new System.Windows.Forms.TabPage();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.btnResetPHTables = new System.Windows.Forms.Button();
			this.label12 = new System.Windows.Forms.Label();
			this.lbNodes = new System.Windows.Forms.CheckedListBox();
			this.chbReturnUponConnection = new System.Windows.Forms.CheckBox();
			this.label11 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.FailedCalls = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.txtCallDuration = new System.Windows.Forms.TextBox();
			this.chbIO = new System.Windows.Forms.CheckBox();
			this.label8 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.txtNodeCapacity = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.txtConcurrentCalls = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.txtTotalConnections = new System.Windows.Forms.TextBox();
			this.lblTotalCalls = new System.Windows.Forms.Label();
			this.lblAverage = new System.Windows.Forms.Label();
			this.cmbSpeed = new System.Windows.Forms.ComboBox();
			this.cmbAlgorithm = new System.Windows.Forms.ComboBox();
			this.btnStart = new System.Windows.Forms.Button();
			this.pnlGraph = new ACO.DrawPanel();
			this.tabPage2 = new System.Windows.Forms.TabPage();
			this.pictureBox2 = new System.Windows.Forms.PictureBox();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.button1 = new System.Windows.Forms.Button();
			this.btnGenerate = new System.Windows.Forms.Button();
			this.TheChart = new dotnetCHARTING.WinForms.Chart();
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.panel2 = new System.Windows.Forms.Panel();
			this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
			this.chbLoopRemoval = new System.Windows.Forms.CheckBox();
			this.tabControl1.SuspendLayout();
			this.tabPage1.SuspendLayout();
			this.groupBox1.SuspendLayout();
			this.tabPage2.SuspendLayout();
			this.groupBox2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.TheChart)).BeginInit();
			this.TheChart.SuspendLayout();
			this.SuspendLayout();
			// 
			// Ticker
			// 
			this.Ticker.Interval = 333;
			this.Ticker.Tick += new System.EventHandler(this.Ticker_Tick);
			// 
			// tabControl1
			// 
			this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.tabControl1.Controls.Add(this.tabPage1);
			this.tabControl1.Controls.Add(this.tabPage2);
			this.tabControl1.Location = new System.Drawing.Point(8, 16);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(792, 728);
			this.tabControl1.TabIndex = 2;
			// 
			// tabPage1
			// 
			this.tabPage1.Controls.Add(this.groupBox1);
			this.tabPage1.Controls.Add(this.pnlGraph);
			this.tabPage1.Location = new System.Drawing.Point(4, 22);
			this.tabPage1.Name = "tabPage1";
			this.tabPage1.Size = new System.Drawing.Size(784, 702);
			this.tabPage1.TabIndex = 0;
			this.tabPage1.Text = "Simulation";
			// 
			// groupBox1
			// 
			this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.groupBox1.Controls.Add(this.chbLoopRemoval);
			this.groupBox1.Controls.Add(this.btnResetPHTables);
			this.groupBox1.Controls.Add(this.label12);
			this.groupBox1.Controls.Add(this.lbNodes);
			this.groupBox1.Controls.Add(this.chbReturnUponConnection);
			this.groupBox1.Controls.Add(this.label11);
			this.groupBox1.Controls.Add(this.label10);
			this.groupBox1.Controls.Add(this.FailedCalls);
			this.groupBox1.Controls.Add(this.label9);
			this.groupBox1.Controls.Add(this.txtCallDuration);
			this.groupBox1.Controls.Add(this.chbIO);
			this.groupBox1.Controls.Add(this.label8);
			this.groupBox1.Controls.Add(this.label7);
			this.groupBox1.Controls.Add(this.label6);
			this.groupBox1.Controls.Add(this.label5);
			this.groupBox1.Controls.Add(this.label4);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.txtNodeCapacity);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.txtConcurrentCalls);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Controls.Add(this.txtTotalConnections);
			this.groupBox1.Controls.Add(this.lblTotalCalls);
			this.groupBox1.Controls.Add(this.lblAverage);
			this.groupBox1.Controls.Add(this.cmbSpeed);
			this.groupBox1.Controls.Add(this.cmbAlgorithm);
			this.groupBox1.Controls.Add(this.btnStart);
			this.groupBox1.Location = new System.Drawing.Point(536, 16);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(240, 680);
			this.groupBox1.TabIndex = 2;
			this.groupBox1.TabStop = false;
			// 
			// btnResetPHTables
			// 
			this.btnResetPHTables.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.btnResetPHTables.Location = new System.Drawing.Point(128, 648);
			this.btnResetPHTables.Name = "btnResetPHTables";
			this.btnResetPHTables.TabIndex = 32;
			this.btnResetPHTables.Text = "Reset Tables";
			this.btnResetPHTables.Click += new System.EventHandler(this.btnResetPHTables_Click);
			// 
			// label12
			// 
			this.label12.Location = new System.Drawing.Point(24, 272);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(128, 16);
			this.label12.TabIndex = 31;
			this.label12.Text = "Dont route traffic";
			// 
			// lbNodes
			// 
			this.lbNodes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.lbNodes.CheckOnClick = true;
			this.lbNodes.Location = new System.Drawing.Point(16, 296);
			this.lbNodes.Name = "lbNodes";
			this.lbNodes.Size = new System.Drawing.Size(216, 214);
			this.lbNodes.TabIndex = 30;
			// 
			// chbReturnUponConnection
			// 
			this.chbReturnUponConnection.Checked = true;
			this.chbReturnUponConnection.CheckState = System.Windows.Forms.CheckState.Checked;
			this.chbReturnUponConnection.Location = new System.Drawing.Point(144, 248);
			this.chbReturnUponConnection.Name = "chbReturnUponConnection";
			this.chbReturnUponConnection.Size = new System.Drawing.Size(16, 16);
			this.chbReturnUponConnection.TabIndex = 28;
			// 
			// label11
			// 
			this.label11.Location = new System.Drawing.Point(16, 248);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(128, 16);
			this.label11.TabIndex = 27;
			this.label11.Text = "Return upon connection";
			// 
			// label10
			// 
			this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.label10.Location = new System.Drawing.Point(32, 616);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(64, 16);
			this.label10.TabIndex = 24;
			this.label10.Text = "Failed Calls";
			// 
			// FailedCalls
			// 
			this.FailedCalls.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.FailedCalls.Location = new System.Drawing.Point(112, 616);
			this.FailedCalls.Name = "FailedCalls";
			this.FailedCalls.TabIndex = 25;
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(48, 184);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(96, 24);
			this.label9.TabIndex = 22;
			this.label9.Text = "Call Duration";
			// 
			// txtCallDuration
			// 
			this.txtCallDuration.Location = new System.Drawing.Point(144, 184);
			this.txtCallDuration.MaxLength = 3;
			this.txtCallDuration.Name = "txtCallDuration";
			this.txtCallDuration.Size = new System.Drawing.Size(48, 20);
			this.txtCallDuration.TabIndex = 21;
			this.txtCallDuration.Text = "170";
			// 
			// chbIO
			// 
			this.chbIO.Checked = true;
			this.chbIO.CheckState = System.Windows.Forms.CheckState.Checked;
			this.chbIO.Location = new System.Drawing.Point(144, 216);
			this.chbIO.Name = "chbIO";
			this.chbIO.Size = new System.Drawing.Size(16, 16);
			this.chbIO.TabIndex = 20;
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(24, 216);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(120, 16);
			this.label8.TabIndex = 19;
			this.label8.Text = "Reduce I/O for speed";
			// 
			// label7
			// 
			this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.label7.Location = new System.Drawing.Point(8, 584);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(96, 24);
			this.label7.TabIndex = 18;
			this.label7.Text = "Total Calls Made";
			// 
			// label6
			// 
			this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.label6.Location = new System.Drawing.Point(8, 552);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(88, 24);
			this.label6.TabIndex = 17;
			this.label6.Text = "Current Average";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(40, 56);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(96, 24);
			this.label5.TabIndex = 16;
			this.label5.Text = "Simulation Speed";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(40, 24);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(96, 24);
			this.label4.TabIndex = 15;
			this.label4.Text = "AntNET Mode";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(48, 152);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(96, 24);
			this.label3.TabIndex = 14;
			this.label3.Text = "Node Capacity";
			// 
			// txtNodeCapacity
			// 
			this.txtNodeCapacity.Location = new System.Drawing.Point(144, 152);
			this.txtNodeCapacity.MaxLength = 3;
			this.txtNodeCapacity.Name = "txtNodeCapacity";
			this.txtNodeCapacity.Size = new System.Drawing.Size(48, 20);
			this.txtNodeCapacity.TabIndex = 13;
			this.txtNodeCapacity.Text = "40";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(40, 120);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(96, 24);
			this.label2.TabIndex = 12;
			this.label2.Text = "Concurrent  Calls";
			// 
			// txtConcurrentCalls
			// 
			this.txtConcurrentCalls.Location = new System.Drawing.Point(144, 120);
			this.txtConcurrentCalls.MaxLength = 3;
			this.txtConcurrentCalls.Name = "txtConcurrentCalls";
			this.txtConcurrentCalls.Size = new System.Drawing.Size(48, 20);
			this.txtConcurrentCalls.TabIndex = 11;
			this.txtConcurrentCalls.Text = "60";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(72, 88);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(64, 24);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -