org.eclipse.ohf.stem.definitions.adapters.relativevalue
Interface RelativeValueProvider

All Known Implementing Classes:
RelativeValueProviderAdapter, StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelRelativeValueProvider, StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelValueRelativeValueProvider

public interface RelativeValueProvider

This interface is implemented by classes that have properties and can map the value of the property to a value between 0.0 (zero) and 1.0 (one), inclusive.


Method Summary
 java.util.List<org.eclipse.emf.edit.provider.IItemPropertyDescriptor> getProperties()
           
 double getRelativeValue(org.eclipse.emf.ecore.EStructuralFeature feature)
          Determine the relative (0.0 to 1.0) value of the property as compared to the other properties.
 double getRelativeValue(org.eclipse.emf.edit.provider.ItemPropertyDescriptor property)
          Determine the relative (0.0 to 1.0) value of the property as compared to the other properties.
 

Method Detail

getProperties

java.util.List<org.eclipse.emf.edit.provider.IItemPropertyDescriptor> getProperties()
Returns:
the properties of the provider

getRelativeValue

double getRelativeValue(org.eclipse.emf.edit.provider.ItemPropertyDescriptor property)
Determine the relative (0.0 to 1.0) value of the property as compared to the other properties.

Parameters:
property - the property whose relative value is to be determined
Returns:
relative (0.0-1.0) value of the property as compared to the other properties.

getRelativeValue

double getRelativeValue(org.eclipse.emf.ecore.EStructuralFeature feature)
Determine the relative (0.0 to 1.0) value of the property as compared to the other properties.

Parameters:
feature - feature of the property whose relative value is to be determined
Returns:
relative (0.0-1.0) value of the property as compared to the other properties.