metricsOverlay.model.metrics
Class MappedRange

java.lang.Object
  extended by metricsOverlay.model.metrics.Range
      extended by metricsOverlay.model.metrics.MappedRange
All Implemented Interfaces:
java.lang.Comparable<Range>, ITyped
Direct Known Subclasses:
CompositeIntegerRange, CompositeRealRange, OrderedNominalRange

public abstract class MappedRange
extends Range

This abstract class provides functionality to create ranges that consist of named mappings.

Version:
1/9/2009
Author:
Matthew Harward

Constructor Summary
MappedRange()
           
 
Method Summary
abstract  java.lang.String getMaxName()
          The name of the maximum value.
abstract  java.lang.String getMinName()
          The name of the minimum value.
abstract  int getNumItems()
          The number of different mappings avaliable.
abstract  java.util.Map<? extends java.lang.Object,java.lang.String> getRangeMap()
          Returns the map containing the ranges within this range.
abstract  boolean isInRangeName(java.lang.String value)
          Returns if the name is contained as a mapping.
 java.lang.String toString()
          Override method of toString for mapped metrics.
 
Methods inherited from class metricsOverlay.model.metrics.Range
compareTo, getMax, getMin, getType, isInRange, isValid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappedRange

public MappedRange()
Method Detail

getNumItems

public abstract int getNumItems()
The number of different mappings avaliable.

Returns:
a count of the number of range mappings.

getRangeMap

public abstract java.util.Map<? extends java.lang.Object,java.lang.String> getRangeMap()
Returns the map containing the ranges within this range.

Returns:
the map.

isInRangeName

public abstract boolean isInRangeName(java.lang.String value)
Returns if the name is contained as a mapping.

Parameters:
value - the name.
Returns:
true if the value was found, else false.

getMinName

public abstract java.lang.String getMinName()
The name of the minimum value.

Returns:
the name.

getMaxName

public abstract java.lang.String getMaxName()
The name of the maximum value.

Returns:
the name.

toString

public java.lang.String toString()
Override method of toString for mapped metrics.

Overrides:
toString in class Range