2 * Copyright (c) 2003-2005 The BISON Project
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.
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.
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.
19 package peersim.vector;
23 * Do testing the vector package.
25 public class TestVectors extends SingleValueHolder
28 //--------------------------------------------------------------------------
30 //--------------------------------------------------------------------------
32 /** Value held by this protocol */
33 protected float fvalue;
35 /** Value held by this protocol */
38 /** Value held by this protocol */
39 protected long lvalue;
42 //--------------------------------------------------------------------------
44 //--------------------------------------------------------------------------
47 * Builds a new (not initialized) value holder.
48 * Calls super constructor.
50 public TestVectors(String prefix) { super(prefix); }
52 //--------------------------------------------------------------------------
54 //--------------------------------------------------------------------------
59 public int getIValue() { return ivalue; }
61 //--------------------------------------------------------------------------
66 public void setIValue(int value) { ivalue = value; }
68 //--------------------------------------------------------------------------
73 public float getFValue() { return fvalue; }
75 //--------------------------------------------------------------------------
80 public void setFValue(float value) { fvalue = value; }
82 //--------------------------------------------------------------------------
87 public long getLValue() { return lvalue; }
89 //--------------------------------------------------------------------------
94 public void setLValue(long value) { lvalue = value; }
96 //--------------------------------------------------------------------------
99 * Returns the value as a string.
101 public String toString() { return value+" "+fvalue+" "+ivalue+" "+lvalue; }