Beispiel #1
0
        private void calculateBasicLaw_Click(object sender, EventArgs e)
        {
            AmdahlsLaw amdahlsLaw = new AmdahlsLaw();

            if (radioRNBase.Checked)
            {
                amdahlsLaw.R_N_Base(textABase.Text.ToString(),
                                    textNMinBase.Text.ToString(), textNMaxBase.Text.ToString(), textNStepBase.Text.ToString(), "R_N_Base");
            }
            else
            {
                amdahlsLaw.R_A_Base(textAMinBase.Text.ToString(),
                                    textAMaxBase.Text.ToString(), textNBase.Text.ToString(), textAStepBase.Text.ToString(), "R_A_Base");
            }

            amdahlsLaw.ResultText(richResultBase);
            amdahlsLaw.ResultGraph(chartGraph);
        }
Beispiel #2
0
        private void buttonNetWork_Click(object sender, EventArgs e)
        {
            AmdahlsLaw amdahlsLaw = new AmdahlsLaw();



            if (radioRANw.Checked)
            {
                amdahlsLaw.R_A_NW(textAMinNW.Text.ToString(),
                                  textAMaxNW.Text.ToString(), textNNW.Text.ToString(), textAStepNW.Text.ToString(),
                                  textCa_NW.Text.ToString(), textCt_NW.Text.ToString(), "R_A_NW");
            }

            if (radioRNNw.Checked)
            {
                amdahlsLaw.R_N_NW(textANW.Text.ToString(),
                                  textNMinNW.Text.ToString(), textNMaxNW.Text.ToString(), textNStepNW.Text.ToString(),
                                  textCaNW.Text.ToString(), textCtNW.Text.ToString(), "R_N_NW");
            }

            if (radioRCaNw.Checked)
            {
                amdahlsLaw.R_Ca_NW(textACa.Text.ToString(),
                                   textNCa.Text.ToString(), textCaMin.Text.ToString(), textCaMax.Text.ToString(),
                                   textCt.Text.ToString(), textCaStep.Text.ToString(), "R_Ca_NW");
            }

            if (radioRCtNw.Checked)
            {
                amdahlsLaw.R_Ct_NW(textACt.Text.ToString(),
                                   textNCt.Text.ToString(), textCaCt.Text.ToString(), textCtMin.Text.ToString(),
                                   textCtMax.Text.ToString(), textCtStep.Text.ToString(), "R_Ct_NW");
            }

            amdahlsLaw.ResultText(richTextNetwork);
            amdahlsLaw.ResultGraph(chartGraphNetWork);
        }