com.rubecula.darwin.domain.genetics
Class Allele_Binary

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
All Implemented Interfaces:
Allele, Attribute, Basic, CacheSignature, Censusible, EitherOr, net.sf.tostring0.Identifiable, net.sf.tostring0.IToString
Direct Known Subclasses:
Allele_Dominance, Allele_Sex

public abstract class Allele_Binary
extends Allele_
implements EitherOr

Abstract type of allele which has two values, based on a boolean.

Author:
Robin Hillyard

Field Summary
 
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
 
Constructor Summary
Allele_Binary(java.lang.String identifier, boolean value)
           
 
Method Summary
 java.lang.String getBases()
           
 boolean getValueAsBoolean()
           
 void setBases(java.lang.String[] bases)
           
 void setValue(java.lang.Object value)
          set the field Attribute_.value.
 
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
 

Constructor Detail

Allele_Binary

public Allele_Binary(java.lang.String identifier,
                     boolean value)
Parameters:
identifier -
value -
Method Detail

getBases

public java.lang.String getBases()
Specified by:
getBases in interface Basic
Returns:
either _bases sub 0 or sub 1, according to which allele we are.
See Also:
Basic.getBases()

getValueAsBoolean

public boolean getValueAsBoolean()
Specified by:
getValueAsBoolean in interface EitherOr
Returns:
the value as a boolean
See Also:
EitherOr.getValueAsBoolean()

setBases

public void setBases(java.lang.String[] bases)
Parameters:
bases - the base strings for the true- and false- valued alleles

setValue

public void setValue(java.lang.Object value)
Description copied from class: Attribute_
set the field Attribute_.value.

Specified by:
setValue in interface Attribute
Overrides:
setValue in class Allele_
Parameters:
value - the new value for the attribute.
See Also:
Attribute_.setValue(java.lang.Object)


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