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_); }
public if_operator(External_module.if_operator data, object e) { information = data; Visul = e; }
public void If_operator_conected(if_operator if_) { if_Operators.Add(if_); }