org.robokind.api.common.position
Class NormalizableRange.DefaultRange

java.lang.Object
  extended by org.robokind.api.common.position.NormalizableRange.DefaultRange
All Implemented Interfaces:
NormalizableRange<NormalizedDouble>
Enclosing interface:
NormalizableRange<T>

public static class NormalizableRange.DefaultRange
extends Object
implements NormalizableRange<NormalizedDouble>

Returns the maximum value of the NormalizableRange.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.robokind.api.common.position.NormalizableRange
NormalizableRange.DefaultRange
 
Field Summary
 
Fields inherited from interface org.robokind.api.common.position.NormalizableRange
NORMALIZED_RANGE
 
Constructor Summary
NormalizableRange.DefaultRange()
           
 
Method Summary
 NormalizedDouble denormalizeValue(NormalizedDouble v)
          Denormalizes a NormalizedDouble to a value within this NormalizableRange.
 NormalizedDouble getMax()
          Returns the minimum value of the NormalizableRange.
 NormalizedDouble getMin()
           
 boolean isValid(NormalizedDouble t)
          Returns true if t is within the NormalizableRange.
 NormalizedDouble normalizeValue(NormalizedDouble t)
          Normalizes a value within the NormalizableRange.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalizableRange.DefaultRange

public NormalizableRange.DefaultRange()
Method Detail

isValid

public boolean isValid(NormalizedDouble t)
Description copied from interface: NormalizableRange
Returns true if t is within the NormalizableRange.

Specified by:
isValid in interface NormalizableRange<NormalizedDouble>
Parameters:
t - value to check
Returns:
true if t is within the NormalizableRange

normalizeValue

public NormalizedDouble normalizeValue(NormalizedDouble t)
Description copied from interface: NormalizableRange
Normalizes a value within the NormalizableRange.

Specified by:
normalizeValue in interface NormalizableRange<NormalizedDouble>
Parameters:
t - value to normalize
Returns:
value within the NormalizableRange, null if t is out of range

denormalizeValue

public NormalizedDouble denormalizeValue(NormalizedDouble v)
Description copied from interface: NormalizableRange
Denormalizes a NormalizedDouble to a value within this NormalizableRange.

Specified by:
denormalizeValue in interface NormalizableRange<NormalizedDouble>
Parameters:
v - value to denormalize
Returns:
non-normalized value within the NormalizableRange

getMin

public NormalizedDouble getMin()
Specified by:
getMin in interface NormalizableRange<NormalizedDouble>

getMax

public NormalizedDouble getMax()
Description copied from interface: NormalizableRange
Returns the minimum value of the NormalizableRange.

Specified by:
getMax in interface NormalizableRange<NormalizedDouble>
Returns:
minimum value of the NormalizableRange


Copyright © 2011-2013. All Rights Reserved.