Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Energy, onHostDestruction: ensured ptr existence
[simgrid.git] / contrib / psg / src / peersim / vector / TestVectors.java
1 /*
2  * Copyright (c) 2003-2005 The BISON Project
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16  *
17  */
18
19 package peersim.vector;
20
21
22 /**
23  * Do testing the vector package.
24  */
25 public class TestVectors extends SingleValueHolder
26 {
27
28 //--------------------------------------------------------------------------
29 //Fields
30 //--------------------------------------------------------------------------
31         
32 /** Value held by this protocol */
33 protected float fvalue;
34
35 /** Value held by this protocol */
36 protected int ivalue;
37
38 /** Value held by this protocol */
39 protected long lvalue;
40         
41
42 //--------------------------------------------------------------------------
43 //Initialization
44 //--------------------------------------------------------------------------
45
46 /**
47  * Builds a new (not initialized) value holder.
48  * Calls super constructor.
49  */
50 public TestVectors(String prefix) { super(prefix); }
51
52 //--------------------------------------------------------------------------
53 //methods
54 //--------------------------------------------------------------------------
55
56 /**
57  * 
58  */
59 public int getIValue() { return ivalue; }
60
61 //--------------------------------------------------------------------------
62
63 /**
64  * 
65  */
66 public void setIValue(int value) { ivalue = value; }
67
68 //--------------------------------------------------------------------------
69
70 /**
71  * 
72  */
73 public float getFValue() { return fvalue; }
74
75 //--------------------------------------------------------------------------
76
77 /**
78  * 
79  */
80 public void setFValue(float value) { fvalue = value; }
81
82 //--------------------------------------------------------------------------
83
84 /**
85  * 
86  */
87 public long getLValue() { return lvalue; }
88
89 //--------------------------------------------------------------------------
90
91 /**
92  * 
93  */
94 public void setLValue(long value) { lvalue = value; }
95
96 //--------------------------------------------------------------------------
97
98 /**
99  * Returns the value as a string.
100  */
101 public String toString() { return value+" "+fvalue+" "+ivalue+" "+lvalue; }
102
103 }
104