JAL-1238 tier index indicating distance of a source from the primary source for that...
[jalview.git] / src / jalview / ws / dbsources / das / datamodel / DasSequenceSource.java
index 95ff7d0..7bb6436 100644 (file)
@@ -70,6 +70,11 @@ public class DasSequenceSource extends DbSourceProxyImpl implements
   protected MultipleConnectionPropertyProviderI connprops = null;
 
   /**
+   * DAS sources are tier 1 - if we have a direct DB connection then we should prefer it
+   */
+  private int tier=1;
+
+  /**
    * create a new DbSource proxy for a DAS 1 source
    * 
    * @param dbnbame
@@ -334,4 +339,10 @@ public class DasSequenceSource extends DbSourceProxyImpl implements
   {
     return coordsys;
   }
+
+  @Override
+  public int getTier()
+  {
+    return tier;
+  }
 }