com.rubecula.darwin.domain.environment
Class ExPhenFactory

java.lang.Object
  extended by com.rubecula.darwin.domain.environment.ExPhenFactory

public final class ExPhenFactory
extends java.lang.Object

Factory Class to create ExPhen objects. Applications can't change this class (it is final) but they can override the methods which call these methods.

Author:
Robin Hillyard

Method Summary
static ExPhen makeExtendedPhenotype(java.lang.Class<? extends ExPhen> clazz, EcoFactor factor, java.lang.Object value)
           
static ExPhen makeExtendedPhenotype(EcoFactor factor, java.lang.Object value)
          Consruct a new ExPhen object, of the default class: ExPhen_Castor .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeExtendedPhenotype

public static ExPhen makeExtendedPhenotype(java.lang.Class<? extends ExPhen> clazz,
                                           EcoFactor factor,
                                           java.lang.Object value)
Parameters:
clazz - the class of ExPhen to instantiate, which must have a constructor of form ExPhen(EcoFactor,Object).
factor - the eco factor
value - the value of the extended phenotype
Returns:
a newly constructed ExPhen.

makeExtendedPhenotype

public static ExPhen makeExtendedPhenotype(EcoFactor factor,
                                           java.lang.Object value)
Consruct a new ExPhen object, of the default class: ExPhen_Castor . TEST

Parameters:
factor - the eco factor
value - the value of the extended phenotype
Returns:
a newly constructed ExPhen.


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