org.biojava.dasobert.eventmodel
Class FeatureEvent

java.lang.Object
  extended by org.biojava.dasobert.eventmodel.AbstractDasEvent
      extended by org.biojava.dasobert.eventmodel.FeatureEvent

public class FeatureEvent
extends AbstractDasEvent


Constructor Summary
FeatureEvent(List<Map<String,String>> feats, Das1Source dasSource, String version)
           
 
Method Summary
 int getComeBackLater()
           
 List<Map<String,String>> getFeatures()
          get the features that have been found.
 String getVersion()
          Get the version of the reference object that has been annotated.
 void setComeBackLater(int comeBackLater)
           
 void setVersion(String version)
           
 
Methods inherited from class org.biojava.dasobert.eventmodel.AbstractDasEvent
getSource, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureEvent

public FeatureEvent(List<Map<String,String>> feats,
                    Das1Source dasSource,
                    String version)
Method Detail

getComeBackLater

public int getComeBackLater()

setComeBackLater

public void setComeBackLater(int comeBackLater)

getFeatures

public List<Map<String,String>> getFeatures()
get the features that have been found. do something like Map[] features = event.getFeatures();
 for (int i = 0 ; i< features;i++) {            
      Map f = features[i];
      String type = (String) f.get("TYPE") ;
      System.out.println(type);
 }      
 

Returns:
a Map containng the features

getVersion

public String getVersion()
Get the version of the reference object that has been annotated. Compare the version string with the version string obtained from the reference server. If they don;t match there is a version problem between the annotation and the reference!

Returns:
the version string (e.g. an MD5 digest of the reference sequence)

setVersion

public void setVersion(String version)


Copyright © 2012 BioJava. All Rights Reserved.