Class ExperimentalFactor
- java.lang.Object
-
- ubic.gemma.model.common.AbstractDescribable
-
- ubic.gemma.model.expression.experiment.ExperimentalFactor
-
- All Implemented Interfaces:
gemma.gsec.model.Securable,gemma.gsec.model.SecuredChild,Serializable,Describable,Identifiable
@Indexed public class ExperimentalFactor extends AbstractDescribable implements gemma.gsec.model.SecuredChild, Serializable
ExperimentFactors are the dependent variables of an experiment (e.g., genotype, time, glucose concentration).- Author:
- Paul
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExperimentalFactor.Factory
-
Constructor Summary
Constructors Constructor Description ExperimentalFactor()No-arg constructor added to satisfy javabean contract
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)Returnstrueif the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity.Set<Characteristic>getAnnotations()Deprecated.CharacteristicgetCategory()Obtain the category of this experimental factor.StringgetDescription()Obtain a human-readable description of the objectExperimentalDesigngetExperimentalDesign()Set<FactorValue>getFactorValues()LonggetId()StringgetName()Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.gemma.gsec.model.SecurablegetSecurityOwner()FactorTypegetType()inthashCode()Returns a hash code based on this entity's identifiers.voidsetAnnotations(Set<Characteristic> annotations)Deprecated.voidsetCategory(Characteristic category)voidsetExperimentalDesign(ExperimentalDesign experimentalDesign)voidsetFactorValues(Set<FactorValue> factorValues)voidsetSecurityOwner(ExpressionExperiment securityOwner)voidsetType(FactorType type)-
Methods inherited from class ubic.gemma.model.common.AbstractDescribable
setDescription, setId, setName, toString
-
-
-
-
Method Detail
-
hashCode
public int hashCode()
Description copied from class:AbstractDescribableReturns a hash code based on this entity's identifiers.- Overrides:
hashCodein classAbstractDescribable
-
equals
public boolean equals(Object obj)
Description copied from class:AbstractDescribableReturnstrueif the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity. Returnsfalseotherwise.- Overrides:
equalsin classAbstractDescribable
-
getId
@DocumentId public Long getId()
- Specified by:
getIdin interfaceIdentifiable- Specified by:
getIdin interfacegemma.gsec.model.Securable- Overrides:
getIdin classAbstractDescribable
-
getName
@Field public String getName()
Description copied from interface:DescribableObtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.- Specified by:
getNamein interfaceDescribable- Overrides:
getNamein classAbstractDescribable
-
getDescription
@Field(store=YES) public String getDescription()
Description copied from interface:DescribableObtain a human-readable description of the object- Specified by:
getDescriptionin interfaceDescribable- Overrides:
getDescriptionin classAbstractDescribable
-
getSecurityOwner
public gemma.gsec.model.Securable getSecurityOwner()
- Specified by:
getSecurityOwnerin interfacegemma.gsec.model.SecuredChild
-
setSecurityOwner
public void setSecurityOwner(ExpressionExperiment securityOwner)
- Parameters:
securityOwner- Used to hint the security system about who 'owns' this,
-
getAnnotations
@Deprecated public Set<Characteristic> getAnnotations()
Deprecated.
-
setAnnotations
@Deprecated public void setAnnotations(Set<Characteristic> annotations)
Deprecated.
-
getCategory
@Nullable @IndexedEmbedded public Characteristic getCategory()
Obtain the category of this experimental factor.- Returns:
- the category or null if annotated automatically from GEO or used as a dummy.
-
setCategory
public void setCategory(@Nullable Characteristic category)
-
getExperimentalDesign
public ExperimentalDesign getExperimentalDesign()
-
setExperimentalDesign
public void setExperimentalDesign(ExperimentalDesign experimentalDesign)
-
getFactorValues
@IndexedEmbedded public Set<FactorValue> getFactorValues()
- Returns:
- The pairing of BioAssay FactorValues with the ExperimentDesign ExperimentFactor.
-
setFactorValues
public void setFactorValues(Set<FactorValue> factorValues)
-
getType
public FactorType getType()
- Returns:
- Categorical vs. continuous. Continuous factors must have a 'measurement' associated with the factorvalues, Categorical ones must not.
-
setType
public void setType(FactorType type)
-
-