Ejemplo n.º 1
0
 /**
  * Connect two components together.
  *
  * @param comp1 the component that we are working with
  * @param comp2 the component that will be added to comp1
  * @param input_output denoted whether it is an input or an output; in = true, out = false
  */
 public void connectComponentTo(Component comp1, Component comp2, boolean input_ouput) {
   if (input_ouput) {
     comp1.connectToInput(comp2);
     comp2.connectToOutput(comp1);
   } else {
     comp1.connectToOutput(comp2);
     comp2.connectToInput(comp1);
   }
 }