Package tools.mdsd.probdist.api.parser
Class DefaultParameterParser
java.lang.Object
tools.mdsd.probdist.api.parser.DefaultParameterParser
- All Implemented Interfaces:
ParameterParser
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.mdsd.probdist.api.parser.ParameterParser
ParameterParser.Sample
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseMatrix
(SimpleParameter param) Valid string pattern: '[[v11,v12,...],[v21,v22,...],...]', in which [v11,v12,...],[v21,v22,...],...parseSampleSpace
(SimpleParameter param) Valid string pattern: '{v1,p1};{v2,p2},...' in which v1 represents a string and p1 a double valueparseScalar
(SimpleParameter param) parseVector
(SimpleParameter param) Valid string pattern: '[v1,v2,...]', in which v1,v2,...
-
Field Details
-
SAMPLE_DELIMITER
- See Also:
-
PAIR_DELIMITER
- See Also:
-
FLOATING_POINT_PATTERN
- See Also:
-
VECTOR_PATTERN
-
MATRIX_PATTERN
-
SAMPLESPACE_PATTERN
-
-
Constructor Details
-
DefaultParameterParser
public DefaultParameterParser()
-
-
Method Details
-
parseScalar
- Specified by:
parseScalar
in interfaceParameterParser
-
parseVector
Valid string pattern: '[v1,v2,...]', in which v1,v2,... represent double values.- Specified by:
parseVector
in interfaceParameterParser
-
parseMatrix
Valid string pattern: '[[v11,v12,...],[v21,v22,...],...]', in which [v11,v12,...],[v21,v22,...],... represent vectors.- Specified by:
parseMatrix
in interfaceParameterParser
-
parseSampleSpace
Valid string pattern: '{v1,p1};{v2,p2},...' in which v1 represents a string and p1 a double value- Specified by:
parseSampleSpace
in interfaceParameterParser
-