public class TaxaAttribute extends Object implements PhenotypeAttribute
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NAME |
Constructor and Description |
---|
TaxaAttribute(List<Taxon> taxa) |
TaxaAttribute(List<Taxon> taxa,
String name) |
Modifier and Type | Method and Description |
---|---|
Taxon[] |
allTaxa() |
List<Taxon> |
allTaxaAsList() |
Object |
allValues()
The return value will typically be a primitive array whose type depends on the sub class
|
PhenotypeAttribute |
changeName(String newName) |
List<Phenotype.ATTRIBUTE_TYPE> |
getCompatibleTypes() |
boolean |
isMissing(int obs) |
boolean |
isTypeCompatible(Phenotype.ATTRIBUTE_TYPE type) |
BitSet |
missing() |
String |
name() |
int |
size() |
PhenotypeAttribute |
subset(int[] obs,
String newName) |
Taxon |
taxon(int obs) |
String |
toString() |
Object |
value(int obs) |
public static final String DEFAULT_NAME
public Taxon[] allTaxa()
public Taxon taxon(int obs)
public Object value(int obs)
value
in interface PhenotypeAttribute
obs
- the observation numberpublic Object allValues()
PhenotypeAttribute
allValues
in interface PhenotypeAttribute
public PhenotypeAttribute subset(int[] obs, String newName)
subset
in interface PhenotypeAttribute
obs
- an array of observation numbersnewName
- The name for the new PhenotypeAttributepublic PhenotypeAttribute changeName(String newName)
changeName
in interface PhenotypeAttribute
newName
- a new name for this PhenotypeAttributepublic boolean isMissing(int obs)
isMissing
in interface PhenotypeAttribute
obs
- the observation numberpublic BitSet missing()
missing
in interface PhenotypeAttribute
public String name()
name
in interface PhenotypeAttribute
public int size()
size
in interface PhenotypeAttribute
public List<Phenotype.ATTRIBUTE_TYPE> getCompatibleTypes()
getCompatibleTypes
in interface PhenotypeAttribute
public boolean isTypeCompatible(Phenotype.ATTRIBUTE_TYPE type)
isTypeCompatible
in interface PhenotypeAttribute
type
- an attribute typeCopyright © 2018. All rights reserved.