com.rubecula.darwin.core
Class Allele_Default

java.lang.Object
  extended by com.rubecula.util.AuditableObject
      extended by com.rubecula.darwin.core.Attribute_Abstract
          extended by com.rubecula.darwin.core.Allele_Abstract
              extended by com.rubecula.darwin.core.Allele_Default
All Implemented Interfaces:
Allele, Attribute, Auditable, Identifiable, Cloneable

public final class Allele_Default
extends Allele_Abstract

A trivial implementation of Allele which models two competing alleles: A and B.

Author:
Robin

Field Summary
(package private) static String[] $S_Alleles
          This array of strings defines the possible values of an allele: A B
 
Constructor Summary
Allele_Default(int which)
          Constructor for Allele_Default
Allele_Default(Object value)
          Constructor for Allele_Default
Allele_Default(Object key, Object value)
           
 
Method Summary
 
Methods inherited from class com.rubecula.darwin.core.Allele_Abstract
equals, getKey, hashCode, resetKey, toString
 
Methods inherited from class com.rubecula.darwin.core.Attribute_Abstract
audit, getAttribute, getIdentifier, getValue, setValue
 
Methods inherited from class com.rubecula.util.AuditableObject
audit, audit, audit, clone
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rubecula.darwin.core.Attribute
getAttribute, getValue, setValue
 

Field Detail

$S_Alleles

static final String[] $S_Alleles
This array of strings defines the possible values of an allele:

Constructor Detail

Allele_Default

public Allele_Default(int which)
Constructor for Allele_Default

Parameters:
which - either 0 for the "A" allele, or 1 for the "B" allele. If which is out of range, an exception will be thrown.

Allele_Default

public Allele_Default(Object value)
Constructor for Allele_Default

Parameters:
value - any value.

Allele_Default

public Allele_Default(Object key,
                      Object value)