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.
Author:
josephramsey
See Also:
  • Field Details

  • Method Details

    • serializableInstance

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

      public Pattern getPattern()
      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