Coverage Report - org.galagosearch.tupleflow.execution.ConnectionPointType
 
Classes in this File Line Coverage Branch Coverage Complexity
ConnectionPointType
75%
3/4
0%
0/2
0
ConnectionPointType$1
50%
1/2
N/A
0
ConnectionPointType$2
50%
1/2
N/A
0
 
 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  10
 public enum ConnectionPointType {
 11  2
     Input {
 12  
         @Override
 13  2
         public String toString() {
 14  0
             return "input";
 15  
         }
 16  
     },
 17  2
     Output {
 18  
         @Override
 19  2
         public String toString() {
 20  0
             return "output";
 21  
         }
 22  
     };
 23  
 
 24  
     public static boolean connectable(ConnectionPointType one, ConnectionPointType two) {
 25  0
         return one != two;
 26  
     }
 27  
 }
 28