4c9ac374a9d52b6fb504fbdaea029b72900142c8
[jalview.git] / src / org / biojava / dasobert / eventmodel / FeatureEvent.java
1 /*
2  *                  BioJava development code
3  *
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,
7  * see:
8  *
9  *      http://www.gnu.org/copyleft/lesser.html
10  *
11  * Copyright for this code is held jointly by the individual
12  * authors.  These should be listed in @author doc comments.
13  *
14  * For more information on the BioJava project and its aims,
15  * or to join the biojava-l mailing list, visit the home page
16  * at:
17  *
18  *      http://www.biojava.org/
19  * 
20  * Created on Oct 28, 2005
21  *
22  */
23 package org.biojava.dasobert.eventmodel;
24
25 import java.util.Map;
26
27 import org.biojava.dasobert.dasregistry.Das1Source;
28 public class FeatureEvent {
29     
30     Map[] features;
31     Das1Source dasSource;
32     int comeBackLater;
33     
34     public FeatureEvent(Map[] features,Das1Source dasSource) {
35         super();
36         this.features =features;
37         this.dasSource = dasSource;
38         comeBackLater = -1;
39     }
40     
41     public int getComeBackLater(){
42         return comeBackLater;
43     }
44     
45     public void setComeBackLater(int comeBackLater){
46         this.comeBackLater = comeBackLater;
47     }
48     
49     
50     /** get the features that have been found.
51      * 
52      * do something like
53      * Map[] features = event.getFeatures();
54      * <pre>
55      * for (int i = 0 ; i< features;i++) {            
56      *      Map f = features[i];
57      *      String type = (String) f.get("TYPE") ;
58      *      System.out.println(type);
59      * }      
60      * </pre>
61      * @return a Map containng the features
62      */
63     public Map[] getFeatures(){
64         return features;
65     }
66     
67     public Das1Source getDasSource(){
68         return dasSource;
69     }
70     
71 }
72