|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tostring0.AToString com.rubecula.darwin.domain.genetics.Chromosome_
public abstract class Chromosome_
Abstract class implementing base methods for the Chromosome
interface.
There is no specific support for Epistasis since the ordering of the loci set
that is returned by getLoci()
is essentially random. If you need to
allow certain genes to suppress the expression of other genes, then it would
probably be best to extend this class.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
LOG
The logger for this class. |
Fields inherited from interface com.rubecula.darwin.domain.helper.Chromosome |
---|
SEX |
Fields inherited from interface net.sf.tostring0.IToString |
---|
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE |
Constructor Summary | |
---|---|
protected |
Chromosome_(java.lang.String identifier,
boolean sexLinked)
|
Method Summary | ||
---|---|---|
protected void |
add(int index,
Locus locus)
|
|
protected boolean |
add(Locus o)
|
|
protected boolean |
addAll(java.util.Collection<? extends Locus> loci)
|
|
void |
addLocus(int index,
Locus locus)
add locus and set the locus to point to this Chromosome as its owner. |
|
boolean |
addLocus(Locus locus)
Method to add a Locus at the end of this Genomic. |
|
protected void |
clear()
|
|
protected boolean |
contains(java.lang.Object locus)
|
|
boolean |
equals(java.lang.Object obj)
|
|
int |
getCount()
|
|
Genomic |
getGenomic()
|
|
java.lang.String |
getIdentifier()
|
|
java.util.Collection<Locus> |
getLoci()
Getter/setter typically used by reflection. |
|
Locus |
getLocus(int index)
|
|
int |
hashCode()
|
|
protected int |
indexOf(java.lang.Object locus)
|
|
protected boolean |
isEmpty()
|
|
boolean |
isSexLinked()
|
|
protected int |
lastIndexOf(java.lang.Object locus)
|
|
protected Locus |
remove(int index)
Actually remove a locus, even if it is the sex locus (unless this method is overridden by Chromosome_Sex . |
|
protected boolean |
remove(java.lang.Object locus)
Actually remove a locus, even if it is the sex locus (unless this method is overridden by Chromosome_Sex . |
|
protected boolean |
retainAll(java.util.Collection<?> c)
|
|
void |
setGenomic(Genomic genomic)
|
|
void |
setLoci(java.util.Collection<Locus> loci)
This is now the preferred method to set the loci. |
|
protected java.lang.Object[] |
toArray()
|
|
protected
|
toArray(T[] a)
|
Methods inherited from class net.sf.tostring0.AToString |
---|
toString, toString, toStringBrief, toStringId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.tostring0.IToString |
---|
toString, toStringBrief, toStringId |
Field Detail |
---|
protected static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
protected Chromosome_(java.lang.String identifier, boolean sexLinked)
identifier
- the identifier for this chromosome.sexLinked
- true if this chromosome is sex-linkedMethod Detail |
---|
public void addLocus(int index, Locus locus) throws GeneticsException
addLocus
in interface Chromosome
index
- locus
-
GeneticsException
Chromosome.addLocus(int,
com.rubecula.darwin.domain.helper.Locus)
public boolean addLocus(Locus locus) throws GeneticsException
setLoci(Collection)
instead.
addLocus
in interface Chromosome
locus
- a locus to be inserted into this Genomic.
GeneticsException
addLocus(int, Locus)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int getCount()
getCount
in interface Chromosome
Chromosome.getCount()
public Genomic getGenomic()
getGenomic
in interface Chromosome
Genomic
to which this chromosome belongs.Chromosome.getGenomic()
public java.lang.String getIdentifier()
getIdentifier
in interface net.sf.tostring0.Identifiable
Identifiable.getIdentifier()
on
_loci
.Identifiable.getIdentifier()
public java.util.Collection<Locus> getLoci()
Chromosome
getLoci
in interface Chromosome
public Locus getLocus(int index)
getLocus
in interface Chromosome
Chromosome.getLocus(int)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean isSexLinked()
isSexLinked
in interface SexLinked
_sexLinked
.SexLinked.isSexLinked()
public void setGenomic(Genomic genomic)
setGenomic
in interface Chromosome
Chromosome.setGenomic(com.rubecula.darwin.domain.helper.Genomic)
public void setLoci(java.util.Collection<Locus> loci)
setLoci
in interface Chromosome
loci
- protected void add(int index, Locus locus) throws GeneticsException
GeneticsException
protected boolean add(Locus o)
protected boolean addAll(java.util.Collection<? extends Locus> loci)
protected void clear()
protected boolean contains(java.lang.Object locus)
protected int indexOf(java.lang.Object locus)
protected boolean isEmpty()
protected int lastIndexOf(java.lang.Object locus)
protected Locus remove(int index)
Chromosome_Sex
.
index
-
protected boolean remove(java.lang.Object locus)
Chromosome_Sex
.
locus
-
protected boolean retainAll(java.util.Collection<?> c)
protected java.lang.Object[] toArray()
protected <T> T[] toArray(T[] a)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |