//Disconnect
output.removeInput(tempComp);
//tempComp.removeOutput(output); //do at end
//Connect
output.addInput(realComp);
realComp.addOutput(output);
}
tempComp.removeAllOutputs();
if(temporaryNegations.containsKey(sentence)) {
//Should be pointing to a "not" that now gets input from realComp