示例#1
0
        public static if_operator Bild_if_Operator(string name, ref string[] args)
        {
            if_operator if_ = new if_operator();

            switch (name)
            {
            case "COM_NN_D":
            {
                if_.Count_of_up_connection = 2;
                if_.exits = new List <Noda> [3];
                for (int i = 0; i < if_.exits.Length; i++)
                {
                    if_.exits[i] = new List <Noda>();
                }
                if_.Count_of_up_connection = 2;
                args = new string[] { ">", "=", "<" };
                if_.names_of_exits = args;
                if_.Name           = name;
            }
            break;

            case "isDown":
            {
                if_.Count_of_up_connection = 1;
                if_.Count_of_up_connection = 1;
                if_.exits = new List <Noda> [2];
                for (int i = 0; i < if_.exits.Length; i++)
                {
                    if_.exits[i] = new List <Noda>();
                }
                args = new string[] { "true", "false" };
                if_.names_of_exits = args;
                if_.Name           = name;
            }
            break;
            }
            if_.type = "if";
            return(if_);
        }
示例#2
0
文件: Controller.cs 项目: kaloriy/VAC
 public if_operator(External_module.if_operator data, object e)
 {
     information = data;
     Visul       = e;
 }
示例#3
0
 public void If_operator_conected(if_operator if_)
 {
     if_Operators.Add(if_);
 }