com.intel.gpe.clients.api.jsdl
Class RangeValueType

java.lang.Object
  extended by com.intel.gpe.clients.api.jsdl.RangeValueType

public class RangeValueType
extends java.lang.Object

The representation of range requirement types in JSDL.

Version:
$Id: RangeValueType.java,v 1.3 2006/08/10 09:31:54 lukichev Exp $
Author:
Alexei Baklushin

Constructor Summary
RangeValueType()
           
RangeValueType(double exact)
          Create the exact requirements
RangeValueType(double exact, double lowerBound, double upperBound)
          Create the range requirements
 
Method Summary
 double getExact()
          Get exact requirements
 double getLowerBound()
          Get lower bound
 double getUpperBound()
          Get upper bound
 boolean lowerThanDouble(double value)
          Test if requirements are met
 void setExact(double exact)
          Set exact requirements
 void setLowerBound(double lowerBound)
          Set lower bound
 void setUpperBound(double upperBound)
          Set upper bound
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeValueType

public RangeValueType(double exact,
                      double lowerBound,
                      double upperBound)
Create the range requirements

Parameters:
exact - - the exact value
lowerBound - - the lower bound
upperBound - - the upper bound

RangeValueType

public RangeValueType(double exact)
Create the exact requirements

Parameters:
exact - - the exact value

RangeValueType

public RangeValueType()
Method Detail

getExact

public double getExact()
Get exact requirements

Returns:
the exact requirements

setExact

public void setExact(double exact)
Set exact requirements

Parameters:
exact - - the exact requirements

getLowerBound

public double getLowerBound()
Get lower bound

Returns:
the lower bound

setLowerBound

public void setLowerBound(double lowerBound)
Set lower bound

Parameters:
lowerBound - - the lower bound

getUpperBound

public double getUpperBound()
Get upper bound

Returns:
the upper bound

setUpperBound

public void setUpperBound(double upperBound)
Set upper bound

Parameters:
upperBound - - the upper bound

lowerThanDouble

public boolean lowerThanDouble(double value)
Test if requirements are met

Parameters:
value - - the tested value
Returns:
true if value is in the range and not less than the exact value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.