gov.nih.nci.caarray.domain.project
Enum ExperimentDesignNodeType

java.lang.Object
  extended by java.lang.Enum<ExperimentDesignNodeType>
      extended by gov.nih.nci.caarray.domain.project.ExperimentDesignNodeType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ExperimentDesignNodeType>

public enum ExperimentDesignNodeType
extends java.lang.Enum<ExperimentDesignNodeType>

An enumeration of different type of nodes in the experiment design graph. these correspond to the node types in an SDRF in mage tab terminology.

Author:
dkokotov

Enum Constant Summary
EXTRACT
          The Extract node type.
HYBRIDIZATION
          The Hybridization node type.
LABELED_EXTRACT
          The Labeled Extract node type.
SAMPLE
          The Sample node type.
SOURCE
          The Source node type.
 
Method Summary
 ExperimentDesignNodeType getPredecesorType()
           
 ExperimentDesignNodeType getSuccessorType()
           
 boolean isDirectPredecessorOf(ExperimentDesignNodeType type)
          Return whether this node type is to the immediate left of the given node type in a hybridization channel or experiment design graph.
 boolean isDirectSuccessorOf(ExperimentDesignNodeType type)
          Return whether this node type is immediately to the right of the given node type in a hybridization channel or experiment design graph.
 boolean isPredecessorOf(ExperimentDesignNodeType type)
          Return whether this node type is to the left of the given node type in a hybridization channel or experiment design graph.
 boolean isSuccessorOf(ExperimentDesignNodeType type)
          Return whether this node type is to the right of the given node type in a hybridization channel or experiment design graph.
static ExperimentDesignNodeType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ExperimentDesignNodeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SOURCE

public static final ExperimentDesignNodeType SOURCE
The Source node type.


SAMPLE

public static final ExperimentDesignNodeType SAMPLE
The Sample node type.


EXTRACT

public static final ExperimentDesignNodeType EXTRACT
The Extract node type.


LABELED_EXTRACT

public static final ExperimentDesignNodeType LABELED_EXTRACT
The Labeled Extract node type.


HYBRIDIZATION

public static final ExperimentDesignNodeType HYBRIDIZATION
The Hybridization node type.

Method Detail

values

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

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

valueOf

public static ExperimentDesignNodeType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getSuccessorType

public ExperimentDesignNodeType getSuccessorType()
Returns:
the node type to the right of this node type in a hybridization channel or experiment design graph.

getPredecesorType

public ExperimentDesignNodeType getPredecesorType()
Returns:
the node type to the left of this node type in a hybridization channel or experiment design graph.

isSuccessorOf

public boolean isSuccessorOf(ExperimentDesignNodeType type)
Return whether this node type is to the right of the given node type in a hybridization channel or experiment design graph.

Parameters:
type - the node type to check
Returns:
true if this node type is to the right of the given node type, false otherwise.

isDirectSuccessorOf

public boolean isDirectSuccessorOf(ExperimentDesignNodeType type)
Return whether this node type is immediately to the right of the given node type in a hybridization channel or experiment design graph.

Parameters:
type - the node type to check
Returns:
true if this node type is to the immediate right of the given node type, false otherwise.

isPredecessorOf

public boolean isPredecessorOf(ExperimentDesignNodeType type)
Return whether this node type is to the left of the given node type in a hybridization channel or experiment design graph.

Parameters:
type - the node type to check
Returns:
true if this node type is to the left of the given node type, false otherwise.

isDirectPredecessorOf

public boolean isDirectPredecessorOf(ExperimentDesignNodeType type)
Return whether this node type is to the immediate left of the given node type in a hybridization channel or experiment design graph.

Parameters:
type - the node type to check
Returns:
true if this node type is to the immediate left of the given node type, false otherwise.