Coverage Report - org.galagosearch.tupleflow.execution.StageConnectionPoint
 
Classes in this File Line Coverage Branch Coverage Complexity
StageConnectionPoint
30%
10/33
N/A
1
 
 1  
 // BSD License (http://www.galagosearch.org/license)
 2  
 
 3  
 package org.galagosearch.tupleflow.execution;
 4  
 
 5  
 import java.io.Serializable;
 6  
 import org.galagosearch.tupleflow.Order;
 7  
 
 8  
 /**
 9  
  * Represents an endpoint for a connection within a TupleFlow stage.
 10  
  * This is defined with an input or output tag in the connections section
 11  
  * of a stage in the XML parameter file.
 12  
  * 
 13  
  * @see org.galagosearch.tupleflow.execution.Job
 14  
  * @author trevor
 15  
  */
 16  
 public class StageConnectionPoint extends Locatable implements Serializable {
 17  
     public ConnectionPointType type;
 18  
     public String externalName;
 19  
     public String internalName;
 20  
     private String className;
 21  
     private String[] order;
 22  
     
 23  
     public StageConnectionPoint(ConnectionPointType type, String name, Order order) {
 24  4
         super(null);
 25  4
         this.type = type;
 26  4
         this.externalName = name;
 27  4
         this.internalName = name;
 28  4
         this.className = order.getOrderedClass().getName();
 29  4
         this.order = order.getOrderSpec();
 30  4
     }
 31  
     
 32  
     public StageConnectionPoint(ConnectionPointType type, String name, Order order, FileLocation location) {
 33  0
         super(location);
 34  0
         this.type = type;
 35  0
         this.externalName = name;
 36  0
         this.internalName = name;
 37  0
         this.className = order.getOrderedClass().getName();
 38  0
         this.order = order.getOrderSpec();
 39  0
     }
 40  
 
 41  
     public StageConnectionPoint(ConnectionPointType type, String name, String className, String[] order, FileLocation location) {
 42  0
         super(location);
 43  0
         this.type = type;
 44  0
         this.externalName = name;
 45  0
         this.internalName = name;
 46  0
         this.className = className;
 47  0
         this.order = order;
 48  0
     }
 49  
 
 50  
     public StageConnectionPoint(ConnectionPointType type, String externalName, String internalName, String className, String[] order, FileLocation location) {
 51  0
         super(location);
 52  0
         this.type = type;
 53  0
         this.externalName = externalName;
 54  0
         this.internalName = internalName;
 55  0
         this.className = className;
 56  0
         this.order = order;
 57  0
     }
 58  
     
 59  
     public String getExternalName() {
 60  4
         return externalName;
 61  
     }
 62  
     
 63  
     public String getInternalName() {
 64  0
         return internalName;
 65  
     }
 66  
 
 67  
     public ConnectionPointType getType() {
 68  0
         return type;
 69  
     }
 70  
 
 71  
     public String getClassName() {
 72  2
         return className;
 73  
     }
 74  
 
 75  
     public String[] getOrder() {
 76  2
         return order;
 77  
     }
 78  
 }