private void CreateOr(bool inverted, string[] parameters) { //parameters[0] = name of the created or-gate //parameters[1 and on] = names of all of the gates to connect as inputs //Create the or-gate OrGate gate = new OrGate(parameters[0], circuitStack.Peek().integratedCircuit, inverted); ProcessNodeParams(gate, parameters); }
private void CreateOutput(string[] parameters) { //Creates an output node for the current circuit //parameters[0] = name of the created node //parameters[1 and on] = unused OrGate gate = new OrGate(parameters[0], circuitStack.Peek().integratedCircuit, false, NodeType.inputNode); ProcessNodeParams(gate, parameters); }
private void CreateInput(string[] parameters) { //Creates an input node for the current circuit //parameters[0] = name of the created node //parameters[1 and on] = names of all of the gates to connect as inputs OrGate node = new OrGate(parameters[0], circuitStack.Peek().integratedCircuit, false, NodeType.inputNode); circuitStack.Peek().AddNode(node); }