Package org.ggp.base.util.propnet.architecture

Examples of org.ggp.base.util.propnet.architecture.Component.addOutput()


        //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
View Full Code Here


            //Disconnect from and
            out.removeInput(or);
            //or.removeOutput(out); //do at end
            //Connect directly to the new input
            out.addInput(in);
            in.addOutput(out);
          }
          or.removeAllOutputs();
          if (pn != null) {
              pn.removeComponent(or);
          }
View Full Code Here

            //Disconnect from and
            out.removeInput(and);
            //and.removeOutput(out); //do at end
            //Connect directly to the new input
            out.addInput(in);
            in.addOutput(out);
          }
          and.removeAllOutputs();
          if (pn != null) {
              pn.removeComponent(and);
          }
View Full Code Here

    //If there's just one, on the other hand, don't use the or gate
    if(or.getInputs().size() == 1) {
      Component in = or.getSingleInput();
      in.removeOutput(or);
      or.removeInput(in);
      in.addOutput(output);
      output.addInput(in);
      return;
    }
    or.addOutput(output);
    output.addInput(or);
View Full Code Here

              //Evidently, wasn't in temporaryNegations
              //So we add the "not" gate and set it in temporaryNegations
              Not not = new Not();
              //Add positive as input
              not.addInput(positive);
              positive.addOutput(not);
              temporaryNegations.put(transformed, not);
              conj = not;
            }
            if(conj == null) {
              Component positive = components.get(transformed);
View Full Code Here

                continue; //to the next conjunct
              }

              Not not = new Not();
              not.addInput(positive);
              positive.addOutput(not);
              negations.put(transformed, not);
              conj = not;
            }
            componentsToConnect.add(conj);
          } else if(literal instanceof GdlDistinct) {
View Full Code Here

    //If there's just one, on the other hand, don't use the and gate
    if(and.getInputs().size() == 1) {
      Component in = and.getSingleInput();
      in.removeOutput(and);
      and.removeInput(in);
      in.addOutput(output);
      output.addInput(in);
      return;
    }
    and.addOutput(output);
    output.addInput(and);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.