Formatting
[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.*;
26
27 import org.biojava.dasobert.dasregistry.*;
28
29 public class FeatureEvent
30 {
31
32   Map[] features;
33   Das1Source dasSource;
34   int comeBackLater;
35
36   public FeatureEvent(Map[] features, Das1Source dasSource)
37   {
38     super();
39     this.features = features;
40     this.dasSource = dasSource;
41     comeBackLater = -1;
42   }
43
44   public int getComeBackLater()
45   {
46     return comeBackLater;
47   }
48
49   public void setComeBackLater(int comeBackLater)
50   {
51     this.comeBackLater = comeBackLater;
52   }
53
54   /** get the features that have been found.
55    *
56    * do something like
57    * Map[] features = event.getFeatures();
58    * <pre>
59    * for (int i = 0 ; i< features;i++) {
60    *      Map f = features[i];
61    *      String type = (String) f.get("TYPE") ;
62    *      System.out.println(type);
63    * }
64    * </pre>
65    * @return a Map containng the features
66    */
67   public Map[] getFeatures()
68   {
69     return features;
70   }
71
72   public Das1Source getDasSource()
73   {
74     return dasSource;
75   }
76
77 }