com.rubecula.darwin.domain.genetics
Class Allele_Sex

java.lang.Object
  extended by net.sf.tostring0.AToString
      extended by com.rubecula.darwin.domain.helper.Attribute_
          extended by com.rubecula.darwin.domain.genetics.Allele_
              extended by com.rubecula.darwin.domain.genetics.Allele_Binary
                  extended by com.rubecula.darwin.domain.genetics.Allele_Sex
All Implemented Interfaces:
Allele, Attribute, Basic, CacheSignature, Censusible, EitherOr, Sexual, net.sf.tostring0.Identifiable, net.sf.tostring0.IToString

public final class Allele_Sex
extends Allele_Binary
implements Sexual

Unlike Allele_Dominance, which uses upper and lower case to denote dominance, the two different alleles of the Allele_Sex type are "Y" and "X" for male and female, respectively.

Author:
Robin Hillyard

Field Summary
static java.lang.String S_X
          X
static java.lang.String S_Y
          Y
static java.lang.String SEX
          sex
static Allele X
          Allele_Sex(false)
static Allele Y
          Allele_Sex(true)
 
Fields inherited from class com.rubecula.darwin.domain.genetics.Allele_
LOG
 
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
 
Method Summary
 boolean isFemale()
          Method to get the sex of this organism.
 
Methods inherited from class com.rubecula.darwin.domain.genetics.Allele_Binary
getBases, getValueAsBoolean, setBases, setValue
 
Methods inherited from class com.rubecula.darwin.domain.genetics.Allele_
censusMe, getCensusibleChildren, getLocus, getSignature, getStringChars, setLocus, setStringChars, toString
 
Methods inherited from class com.rubecula.darwin.domain.helper.Attribute_
equals, getAttribute, getIdentifier, getValue, hashCode
 
Methods inherited from class net.sf.tostring0.AToString
toString, toStringBrief, toStringId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rubecula.darwin.domain.helper.Attribute
getAttribute, getValue
 
Methods inherited from interface net.sf.tostring0.IToString
toStringBrief, toStringId
 
Methods inherited from interface net.sf.tostring0.Identifiable
getIdentifier
 

Field Detail

Y

public static final Allele Y
Allele_Sex(true)


X

public static final Allele X
Allele_Sex(false)


S_X

public static final java.lang.String S_X
X

See Also:
Constant Field Values

S_Y

public static final java.lang.String S_Y
Y

See Also:
Constant Field Values

SEX

public static final java.lang.String SEX
sex

See Also:
Constant Field Values
Method Detail

isFemale

public boolean isFemale()
Description copied from interface: Sexual
Method to get the sex of this organism. I will not use the word gender as it is inappropriate!

Specified by:
isFemale in interface Sexual
Returns:
true if this organism is female.
See Also:
Sexual.isFemale()


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.