public GateComposite createNode(string type) { try { GateComposite node = _nodes[type]; return(node.Clone()); } catch (KeyNotFoundException e) { WrongInputException wie = new WrongInputException("wrong input", e); throw wie; } }
public GateGraphic(GateComposite gate) { this.gate = gate; x = 0; y = 0; }
public void RegisterNode(string name, GateComposite node) { _nodes.Add(name, node); }