1
//////////////////////////////////////////////////////////////////////
3
// JCSP ("CSP for Java") Libraries //
4
// Copyright (C) 1996-2008 Peter Welch and Paul Austin. //
5
// 2001-2004 Quickstone Technologies Limited. //
7
// This library is free software; you can redistribute it and/or //
8
// modify it under the terms of the GNU Lesser General Public //
9
// License as published by the Free Software Foundation; either //
10
// version 2.1 of the License, or (at your option) any later //
13
// This library is distributed in the hope that it will be //
14
// useful, but WITHOUT ANY WARRANTY; without even the implied //
15
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR //
16
// PURPOSE. See the GNU Lesser General Public License for more //
19
// You should have received a copy of the GNU Lesser General //
20
// Public License along with this library; if not, write to the //
21
// Free Software Foundation, Inc., 59 Temple Place, Suite 330, //
22
// Boston, MA 02111-1307, USA. //
24
// Author contact: P.H.Welch@kent.ac.uk //
27
//////////////////////////////////////////////////////////////////////
29
package org.jcsp.net.settings;
32
* Used internally within the JCSP network infrastructure to represent a maximum speed.
34
* @author Quickstone Technologies Limited
36
public class MaxSpeed extends Spec implements XMLConfigConstants
38
MaxSpeed(int maxSpeed)
40
super(SPEC_NAME_MAXSPEED, true);
41
this.maxSpeed = maxSpeed;
44
public String getStringValue()
49
public boolean equals(Object o)
51
if(o instanceof MaxSpeed)
53
MaxSpeed other = (MaxSpeed) o;
54
return maxSpeed == other.maxSpeed;
b'\\ No newline at end of file'