1   /*
2       Bloof - visualize the evolution of your software project
3       Copyright ( C ) 2003  Lukasz Pekacki <lukasz@pekacki.de>
4       http://bloof.sf.net/
5       
6       This program is free software; you can redistribute it and/or modify it
7       under the terms of the GNU General Public License.
8       
9       This program is distributed in the hope that it will be useful,
10      but WITHOUT ANY WARRANTY; without even the implied warranty of
11      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12      GNU General Public License for more details.
13      
14      You should have received a copy of the GNU General Public License along with
15      this program; if not, write to the Free Software Foundation, Inc., 
16      59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17  
18      $RCSfile: TimeValue.java,v $ 
19      Created on $Date: 2003/06/28 06:51:41 $ 
20  */
21  package net.sf.bloof.metrics;
22  
23  import java.util.Date;
24  
25  /***
26   * Tupel object for a Number value at a specific date.
27   * @author Lukasz Pekacki <pekacki@users.sourceforge.net>
28   * @version $Id: TimeValue.java,v 1.5 2003/06/28 06:51:41 pekacki Exp $
29   */
30  public class TimeValue {
31      /***
32       * Constructs a TimeValue object representing the value of a time line at
33       * the specified moment
34       * @param aMoment moment of the data
35       * @param aValue value of the data
36       */
37      public TimeValue( Date aMoment, Number aValue ) {
38          mMoment  =  aMoment;
39          mValue  =  aValue;
40     }
41  
42      /***
43       * Returns the moment.
44       * @return Date
45       */
46      public Date getMoment(  ) {
47          return mMoment;
48     }
49  
50      /***
51       * Returns the value.
52       * @return Number
53       */
54      public Number getValue(  ) {
55          return mValue;
56     }
57  
58      private Date mMoment;
59      private Number mValue;
60  }
This page was automatically generated by Maven