com.aelitis.azureus.core.speedmanager.impl.v2
Class SpeedLimitConfidence

java.lang.Object
  extended by com.aelitis.azureus.core.speedmanager.impl.v2.SpeedLimitConfidence
All Implemented Interfaces:
java.lang.Comparable

public class SpeedLimitConfidence
extends java.lang.Object
implements java.lang.Comparable

Created on Jun 5, 2007 Created by Alan Snyder Copyright (C) Azureus Software, Inc, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Field Summary
static SpeedLimitConfidence ABSOLUTE
           
static SpeedLimitConfidence HIGH
           
static SpeedLimitConfidence LOW
           
static SpeedLimitConfidence MED
           
static SpeedLimitConfidence NONE
           
 
Method Summary
 float asEstimateType()
           
static java.lang.String asEstimateTypeString(float type)
           
 int compareTo(java.lang.Object obj)
          Comparable interface.
 int compareTo(SpeedLimitConfidence limitConf)
          Comparable interface
static SpeedLimitConfidence convertType(float type)
           
 java.lang.String getInternationalizedString()
          Get the internationalized string for UI panels and drop downs.
 java.lang.String getString()
           
 boolean isGreater(SpeedLimitConfidence limitConf)
          compareTo to with boolean syntax.
static SpeedLimitConfidence parseString(java.lang.String setting)
          Turns a string into a SpeedLimitConfidence class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final SpeedLimitConfidence NONE

LOW

public static final SpeedLimitConfidence LOW

MED

public static final SpeedLimitConfidence MED

HIGH

public static final SpeedLimitConfidence HIGH

ABSOLUTE

public static final SpeedLimitConfidence ABSOLUTE
Method Detail

convertType

public static SpeedLimitConfidence convertType(float type)

parseString

public static SpeedLimitConfidence parseString(java.lang.String setting)
Turns a string into a SpeedLimitConfidence class.

Parameters:
setting - - String is expected to be one of: NONE, LOW, MED, HIGH, ABSOLUE.
Returns:
- class corresponding to String. If it isn't one of the know values then NONE is returned.

asEstimateType

public float asEstimateType()

asEstimateTypeString

public static java.lang.String asEstimateTypeString(float type)

getString

public java.lang.String getString()

getInternationalizedString

public java.lang.String getInternationalizedString()
Get the internationalized string for UI panels and drop downs.

Returns:
- Internationalized String.

isGreater

public boolean isGreater(SpeedLimitConfidence limitConf)
compareTo to with boolean syntax.

Parameters:
limitConf - -
Returns:
- true if greater then, false if equal or less.

compareTo

public int compareTo(SpeedLimitConfidence limitConf)
Comparable interface

Parameters:
limitConf - - Item to compare with.
Returns:
-

compareTo

public int compareTo(java.lang.Object obj)
Comparable interface.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
obj - -
Returns:
-