Package edu.cmu.tetrad.data
Class DelimiterType
java.lang.Object
edu.cmu.tetrad.data.DelimiterType
- All Implemented Interfaces:
TetradSerializable,Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final DelimiterTypeConstantCOLONstatic final DelimiterTypeConstantCOMMAstatic final DelimiterTypeConstantTABstatic final DelimiterTypeConstantWHITESPACE -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldpattern.static DelimiterTypeGenerates a simple exemplar of this class to test serialization.toString()Prints out the name of the type.
-
Field Details
-
WHITESPACE
ConstantWHITESPACE -
TAB
ConstantTAB -
COMMA
ConstantCOMMA -
COLON
ConstantCOLON
-
-
Method Details
-
serializableInstance
Generates a simple exemplar of this class to test serialization.- Returns:
- a
DelimiterTypeobject
-
getPattern
Getter for the field
pattern.- Returns:
- the CPDAG representing this delimiter type. This CPDAG can be used to parse, using a matcher.
-
toString
-