Esempio n. 1
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            if (Intersections == null)
            {
                //MessageBox.Show("Input data file was not opened, so simulation will be run with default values.", "Input Data Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                rtbMessages.Text = "Input data file was not opened, so simulation was run with default values.";

                if (InterchangeSelection == 1)
                {
                    Intersections = CreateOnramp.TightDiamond();
                }
                else
                {
                    Intersections = CreateOnramp.DDI();
                }

                btnStart.Text = "Queuing Analysis (Default Values) Ran";
            }
            else
            {
                btnStart.Text = "Queuing Analysis (Loaded Values) Ran";
            }

            if (InterchangeSelection == 1)
            {
                QueueAnalysis.SingleRampSegment(Intersections);
            }
            else
            {
                QueueAnalysis.MultipleRampSegments(Intersections);
            }
        }
Esempio n. 2
0
        private void btnWriteDataFile_Click(object sender, EventArgs e)
        {
            if (Intersections == null)
            {
                if (InterchangeSelection == 1)
                {
                    Intersections = CreateOnramp.TightDiamond();
                }
                else
                {
                    Intersections = CreateOnramp.DDI();
                }
            }
            else
            {
                btnWriteDataFile.Text = "Ouput Successful";
            }

            FileInputOutput.SerializeInputData(FileName, Intersections);
        }