Interface CellLevelCharacteristics
- All Superinterfaces:
Describable,Identifiable
- All Known Implementing Classes:
CellTypeAssignment,GenericCellLevelCharacteristics
Characteristics applicable to individual cells in a
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 an object is a possibly ambiguous human-readable identifier that need not be an external database reference.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 an object is a possibly ambiguous human-readable identifier that need not be an external database reference.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
-