T
- the type of feature being mapped to a dimension.E
- the type of object to be used as a description of each dimension.public interface BasisMapping<T,E>
String
with a human-readable
description. Another implementation may return a Set
of features
that are represented by the dimension in order to facilitate further
processing.Modifier and Type | Method and Description |
---|---|
int |
getDimension(T features)
Returns the dimension number corresponding to the provided feature.
|
E |
getDimensionDescription(int dimension)
Returns a description of the specified dimension.
|
boolean |
isReadOnly()
Returns true if the
BasisMapping is read only, false otherwise. |
Set<E> |
keySet()
Returns the set of keys known by this
BasisMapping |
int |
numDimensions()
Returns the number of dimensions currently represented in this basis
mapping.
|
void |
setReadOnly(boolean readOnly)
Sets the read only state of the basis mapping.
|
int getDimension(T features)
feature
- a feature whose value can be usedE getDimensionDescription(int dimension)
dimension
- a dimension numberSet<E> keySet()
BasisMapping
int numDimensions()
void setReadOnly(boolean readOnly)
boolean isReadOnly()
BasisMapping
is read only, false otherwise.Copyright © 2012. All Rights Reserved.