Interface CellLevelCharacteristics
- All Superinterfaces:
Describable,Identifiable
- All Known Implementing Classes:
CellTypeAssignment,GenericCellLevelCharacteristics
SingleCellDimension.- Author:
- poirigui
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<CellLevelCharacteristics> static final intIndicator for an unknown characteristic. -
Method Summary
Modifier and TypeMethodDescriptiongetCharacteristic(int cellIndex) Obtain the characteristic assigned to a given cell.List of characteristic.int[]Each entry indicate which characteristic fromgetCharacteristics()is applicable for a given cell.getName()Obtain the name of the object.Obtain the number of cells assigned with a characteristic.intThe number of characteristics ingetCharacteristics().Methods inherited from interface ubic.gemma.model.common.Describable
getDescriptionMethods inherited from interface ubic.gemma.model.common.Identifiable
getId
-
Field Details
-
COMPARATOR
-
UNKNOWN_CHARACTERISTIC
static final int UNKNOWN_CHARACTERISTICIndicator for an unknown characteristic.- See Also:
-
-
Method Details
-
getName
Obtain the name of the object.It may be human-readable.
It is case-insensitive and usually unique within a certain context (e.g. in a collection).
It is non-null by default, but implementation may override this with a
Nullableannotation. If null, it should not be treated as equal to otherDescribableobjects (i.e. there can be multiple null-named describable within a given set).The name is not mandatory, but if set it will appear in lieu of the category.
- Specified by:
getNamein interfaceDescribable
-
getCharacteristics
List<Characteristic> getCharacteristics()List of characteristic. -
getNumberOfCharacteristics
int getNumberOfCharacteristics()The number of characteristics ingetCharacteristics(). -
getIndices
int[] getIndices()Each entry indicate which characteristic fromgetCharacteristics()is applicable for a given cell.UNKNOWN_CHARACTERISTICis used to indicate a missing value for a cell. In this case,getCharacteristic(int)returnsnull.The size of this array is the number of cells, typically in a
SingleCellDimension. -
getNumberOfAssignedCells
Obtain the number of cells assigned with a characteristic.This is equal to the number of entries in
getIndices()that are notUNKNOWN_CHARACTERISTIC.TOOD: switch to a regular
intonce existing CLCs have all been back-filled. -
getCharacteristic
Obtain the characteristic assigned to a given cell.- Returns:
- the characteristic or
nullif the cell is assigned toUNKNOWN_CHARACTERISTIC. - Throws:
IndexOutOfBoundsException- if the cell index is out of bounds
-