Class 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
      Command process​(java.lang.String moduleCode, java.util.Map<java.lang.String,​java.lang.String> parameters)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 instance
        description - the grade description
        marks - the marks obtained
        maxMarks - the maximum marks obtainable
        weightage - 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:
        process in class ParserState