2 * BioJava development code
4 * This code may be freely distributed and modified under the
5 * terms of the GNU Lesser General Public Licence. This should
6 * be distributed with the code. If you do not have a copy,
9 * http://www.gnu.org/copyleft/lesser.html
11 * Copyright for this code is held jointly by the individual
12 * authors. These should be listed in @author doc comments.
14 * For more information on the BioJava project and its aims,
15 * or to join the biojava-l mailing list, visit the home page
18 * http://www.biojava.org/
20 * Created on Oct 28, 2005
23 package org.biojava.dasobert.eventmodel;
27 import org.biojava.dasobert.dasregistry.*;
29 public class FeatureEvent extends AbstractDasEvent
38 public FeatureEvent(Map[] features, Das1Source dasSource, String version)
41 this.features = features;
42 this.dasSource = dasSource;
44 this.version = version;
47 public int getComeBackLater()
52 public void setComeBackLater(int comeBackLater)
54 this.comeBackLater = comeBackLater;
58 * get the features that have been found.
60 * do something like Map[] features = event.getFeatures();
63 * for (int i = 0; i < features; i++)
65 * Map f = features[i];
66 * String type = (String) f.get("TYPE");
67 * System.out.println(type);
71 * @return a Map containng the features
73 public Map[] getFeatures()
79 * Get the version of the reference object that has been annotated. Compare
80 * the version string with the version string obtained from the reference
81 * server. If they don;t match there is a version problem between the
82 * annotation and the reference!
84 * @return the version string (e.g. an MD5 digest of the reference sequence)
86 public String getVersion()
91 public void setVersion(String version)
93 this.version = version;