Class DelimiterType

java.lang.Object
edu.cmu.tetrad.data.DelimiterType
All Implemented Interfaces:
TetradSerializable, Serializable

public final class DelimiterType extends Object implements TetradSerializable
Type-safe enum of delimiter types for parsing data. DISCRETE is used in data where every line starts a new field and every occurrence of a tab starts a new field. SECTION_MARKER is replaces tabs by " *\t *". LAUNCH_TIME replaces tabs by ",". Custom replaces tabs by a specified regular expression.
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Field Details

    • WHITESPACE

      public static final DelimiterType WHITESPACE
      Constant WHITESPACE
    • TAB

      public static final DelimiterType TAB
      Constant TAB
    • COMMA

      public static final DelimiterType COMMA
      Constant COMMA
    • COLON

      public static final DelimiterType COLON
      Constant COLON
  • Method Details

    • serializableInstance

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

      public Pattern getPattern()

      Getter for the field pattern.

      Returns:
      the CPDAG representing this delimiter type. This CPDAG can be used to parse, using a matcher.
    • toString

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