org.robokind.api.common.position
Interface NormalizableRange<T>

All Known Implementing Classes:
NumberRange

public interface NormalizableRange<T>

Author:
Matthew Stevenson

Method Summary
 T denormalizeValue(NormalizedDouble v)
          Denormalizes a NormalizedDouble to a value within this NormalizableRange.
 boolean isValid(T t)
          Returns true if t is within the NormalizableRange.
 NormalizedDouble normalizeValue(T t)
          Normalizes a value within the NormalizableRange.
 

Method Detail

isValid

boolean isValid(T t)
Returns true if t is within the NormalizableRange.

Parameters:
t - value to check
Returns:
true if t is within the NormalizableRange

normalizeValue

NormalizedDouble normalizeValue(T t)
Normalizes a value within the NormalizableRange.

Parameters:
t - value to normalize
Returns:
value within the NormalizableRange, null if t is out of range

denormalizeValue

T denormalizeValue(NormalizedDouble v)
Denormalizes a NormalizedDouble to a value within this NormalizableRange.

Parameters:
v - value to denormalize
Returns:
non-normalized value within the NormalizableRange


Copyright © 2011. All Rights Reserved.