//设置关联的属性集,并由此设置面板属性--------------------
 public void setAtrributes()
 {
     if (model.getAssociatedAttibuteName() != null)
     {
         List <string> states = model.GetLateNameStatus();
         attribute1 = states[2];
         attribute2 = model.getAssociatedAttibuteName();
         this.xText = attribute1;
         this.yText = attribute2;
         this.title = this.yText + "-" + this.xText;
     }
 }
Beispiel #2
0
        //方案名,成员,属性
        public List <string> InitializeCaseInfo()
        {
            List <string> list    = model.GetLateNameStatus();
            List <string> listPre = new List <string>();

            listPre.Add((list.Count - 1).ToString());//
            listPre.Add("方案名称");
            listPre.Add(list[0]);

            //  listPre.Add("属性");
            for (int i = 1; i + 1 < list.Count; i = i + 2)
            {
                listPre.Add("成员-属性");
                listPre.Add(list[i] + "-" + list[i + 1]);
            }
            string anotherAttribute = model.getAssociatedAttibuteName();

            if (!anotherAttribute.Equals(""))
            {
                listPre.Add("成员-属性");
                listPre.Add(list[1] + "-" + anotherAttribute);
                listPre[0] = (Int32.Parse(listPre[0]) + 1).ToString();
            }
            return(listPre);
        }
Beispiel #3
0
        private void startButton_Click(object sender, EventArgs e)
        {
            //
            string anoAttributeId   = model.getAssociatedAttibuteId();
            string anoAttributeName = model.getAssociatedAttibuteName();
            string reqStr           = "";//拼接请求字符串:方案名-运行次数-成员名-属性1(x)-属性二(y)……………………………………………………………………………………

            double[] results = getRelations(reqStr);
            if (results != null)
            {
                this.fomulationTextBox.Text = "Y=" + results[0] + "* X +" + results[2];
                List <string> str = model.GetLateNameStatus();

                this.XYInfoTextBox.Text = "Y:" + anoAttributeName + "  X:" + str[2]; //不确定获取第一个属性*****************************
            }
            model.setlinearResults(results);
            agent.informZedGetCoff();
        }