Package duchess.parser.states.add
Class GradeModuleState
- java.lang.Object
-
- duchess.parser.states.ParserState
-
- duchess.parser.states.add.GradeModuleState
-
public class GradeModuleState extends ParserState
Handles the parsing of grades associated with modules.
-
-
Constructor Summary
Constructors Constructor Description GradeModuleState(Parser parser, java.lang.String description, double marks, double maxMarks, double weightage)Initializes a state to parse module associated with a grade.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Commandprocess(java.lang.String moduleCode, java.util.Map<java.lang.String,java.lang.String> parameters)-
Methods inherited from class duchess.parser.states.ParserState
continueParsing, parse
-
-
-
-
Constructor Detail
-
GradeModuleState
public GradeModuleState(Parser parser, java.lang.String description, double marks, double maxMarks, double weightage)
Initializes a state to parse module associated with a grade.- Parameters:
parser- the main parser instancedescription- the grade descriptionmarks- the marks obtainedmaxMarks- the maximum marks obtainableweightage- the weightage of the grade
-
-
Method Detail
-
process
public Command process(java.lang.String moduleCode, java.util.Map<java.lang.String,java.lang.String> parameters)
- Overrides:
processin classParserState
-
-