jebl.evolution.coalescent
Enum IntervalList.IntervalType

java.lang.Object
  extended by java.lang.Enum<IntervalList.IntervalType>
      extended by jebl.evolution.coalescent.IntervalList.IntervalType
All Implemented Interfaces:
Serializable, Comparable<IntervalList.IntervalType>
Enclosing interface:
IntervalList

public static enum IntervalList.IntervalType
extends Enum<IntervalList.IntervalType>


Enum Constant Summary
COALESCENT
          Denotes an interval after which a coalescent event is observed (i.e.
MIGRATION
          Denotes an interval at the end of which a migration event occurs.
NOTHING
          Denotes an interval at the end of which nothing is observed (i.e.
SAMPLE
          Denotes an interval at the end of which a new sample addition is observed (i.e.
 
Method Summary
 String toString()
           
static IntervalList.IntervalType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IntervalList.IntervalType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SAMPLE

public static final IntervalList.IntervalType SAMPLE
Denotes an interval at the end of which a new sample addition is observed (i.e. the number of lineages is larger in the next interval).


COALESCENT

public static final IntervalList.IntervalType COALESCENT
Denotes an interval after which a coalescent event is observed (i.e. the number of lineages is smaller in the next interval)


MIGRATION

public static final IntervalList.IntervalType MIGRATION
Denotes an interval at the end of which a migration event occurs. This means that the colour of one lineage changes.


NOTHING

public static final IntervalList.IntervalType NOTHING
Denotes an interval at the end of which nothing is observed (i.e. the number of lineages is the same in the next interval).

Method Detail

values

public static final IntervalList.IntervalType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(IntervalList.IntervalType c : IntervalList.IntervalType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static IntervalList.IntervalType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

toString

public String toString()
Overrides:
toString in class Enum<IntervalList.IntervalType>