View Javadoc

1   // BSD License (http://www.galagosearch.org/license)
2   package org.galagosearch.tupleflow.execution;
3   
4   /***
5    * Represents the end point type of a TupleFlow connection: either input
6    * or output.
7    * 
8    * @author trevor
9    */
10  public enum ConnectionPointType {
11      Input {
12          @Override
13          public String toString() {
14              return "input";
15          }
16      },
17      Output {
18          @Override
19          public String toString() {
20              return "output";
21          }
22      };
23  
24      public static boolean connectable(ConnectionPointType one, ConnectionPointType two) {
25          return one != two;
26      }
27  }
28