public class AllenCompartment extends java.lang.Object implements BrainAnnotation
Constructor and Description |
---|
AllenCompartment(int id)
Instantiates a new ARA annotation from its identifier.
|
AllenCompartment(java.util.UUID uuid)
Instantiates a new ARA annotation from an UUID (as used by MouseLight's
database).
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
acronym() |
java.lang.String[] |
aliases() |
boolean |
containedBy(AllenCompartment parentCompartment)
Assesses if this annotation is a child of a specified compartment.
|
boolean |
contains(AllenCompartment childCompartment)
Assesses if this annotation is parent of a specified compartment.
|
boolean |
equals(java.lang.Object o) |
java.util.List<AllenCompartment> |
getAncestors(int level)
Gets the ancestor ontologies of this compartment as a flat (non-hierarchical)
list.
|
java.util.List<AllenCompartment> |
getChildren()
Gets the child ontologies of this compartment as a flat (non-hierarchical)
list.
|
java.util.List<AllenCompartment> |
getChildren(int level)
Gets the child ontologies of this compartment as a flat (non-hierarchical)
list.
|
OBJMesh |
getMesh() |
int |
getOntologyDepth()
Gets the ontology depth of this compartment.
|
AllenCompartment |
getParent()
Gets the parent of this compartment
|
java.util.List<AllenCompartment> |
getTreePath()
Gets the tree path of this compartment.
|
int |
id() |
boolean |
isMeshAvailable()
Checks whether a mesh is known to be available for this compartment.
|
java.lang.String |
name() |
java.lang.String |
toString() |
public AllenCompartment(java.util.UUID uuid)
uuid
- the ML UUID identifying the annotationpublic AllenCompartment(int id)
id
- the integer identifying the annotationpublic boolean contains(AllenCompartment childCompartment)
childCompartment
- the compartment to be testedchildCompartment
's
getTreePath()
contains this compartmentpublic boolean containedBy(AllenCompartment parentCompartment)
parentCompartment
- the compartment to be testedgetTreePath()
contains
parentCompartment
public java.util.List<AllenCompartment> getTreePath()
public int getOntologyDepth()
9
, has a depth of 8
).public AllenCompartment getParent()
public java.util.List<AllenCompartment> getAncestors(int level)
level
- maximum depth that should be considered.public java.util.List<AllenCompartment> getChildren()
public java.util.List<AllenCompartment> getChildren(int level)
level
- maximum depth that should be considered.public int id()
id
in interface BrainAnnotation
public java.lang.String name()
name
in interface BrainAnnotation
public java.lang.String acronym()
acronym
in interface BrainAnnotation
public java.lang.String[] aliases()
aliases
in interface BrainAnnotation
public boolean isMeshAvailable()
public OBJMesh getMesh()
getMesh
in interface BrainAnnotation
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object