Class NamingProtocol
java.lang.Object
edu.cmu.tetrad.util.NamingProtocol
Specifies the protocol used in Tetrad for variable names.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringProvides a description of the naming protocol used for variable names.static booleanisLegalName(String name) Evaluates whether the given name conforms to the naming protocol.
-
Method Details
-
isLegalName
Evaluates whether the given name conforms to the naming protocol.- Parameters:
name- the name to be checked- Returns:
trueif the name is non-null and matches the pattern for legal names,falseotherwise
-
getProtocolDescription
Provides a description of the naming protocol used for variable names. The protocol specifies that names must begin with a non-numeric character, and may not contain spaces or tabs. Quotes are allowed within names.- Returns:
- a string describing the rules for variable names in the naming protocol
-