Class NodeType

java.lang.Object
edu.cmu.tetrad.graph.NodeType
All Implemented Interfaces:
TetradSerializable, Serializable

public final class NodeType extends Object implements TetradSerializable
A typesafe enum of the types of the types of nodes in a graph (MEASURED, LATENT, ERROR).
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Field Details

    • MEASURED

      public static final NodeType MEASURED
      Constant MEASURED
    • LATENT

      public static final NodeType LATENT
      Constant LATENT
    • ERROR

      public static final NodeType ERROR
      Constant ERROR
    • SESSION

      public static final NodeType SESSION
      Constant SESSION
    • RANDOMIZE

      public static final NodeType RANDOMIZE
      Constant RANDOMIZE
    • LOCK

      public static final NodeType LOCK
      Constant LOCK
    • NO_TYPE

      public static final NodeType NO_TYPE
      Constant NO_TYPE
    • TYPES

      public static final NodeType[] TYPES
      Constant TYPES
  • Method Details

    • serializableInstance

      public static NodeType serializableInstance()
      Generates a simple exemplar of this class to test serialization.
      Returns:
      a NodeType object
    • toString

      public String toString()
      Prints out the name of the type.
      Overrides:
      toString in class Object
      Returns:
      a String object