Class Key_M

    • Field Detail

      • TAG

        private static final String TAG

        class logger tag.

      • logger

        private static final Logger logger

        class logger instance

      • Begin_Plane_1

        public static final int Begin_Plane_1

        each memory plane contains 20 register. This is the offset for the 2nd plane

        See Also:
        Constant Field Values
      • Begin_Plane_2

        public static final int Begin_Plane_2

        each memory plane contains 20 register. This is the offset for the 3rd plane

        See Also:
        Constant Field Values
      • Begin_Plane_3

        public static final int Begin_Plane_3

        each memory plane contains 20 register. This is the offset for the 4th plane

        See Also:
        Constant Field Values
      • Begin_Plane_4

        public static final int Begin_Plane_4

        each memory plane contains 20 register. This is the offset for the 5th plane

        See Also:
        Constant Field Values
      • F_Token_Divider

        public static final int F_Token_Divider

        f register are not neatly aligned and need some magic to calculate the token

        See Also:
        Constant Field Values
      • F_Token_Offset

        public static final int F_Token_Offset

        offset between 0f an 1f operations. f register are not neatly aligned and need some magic to calculate the token

        See Also:
        Constant Field Values
      • M_Token_Offset

        public static final int M_Token_Offset

        offset between even and odd even memory operations. f register are not neatly aligned and need some magic to calculate the token

        See Also:
        Constant Field Values
      • Memory_Digit_1

        public static final int Memory_Digit_1

        first digit to display while entering the key

        See Also:
        Constant Field Values
      • Memory_Digit_2

        public static final int Memory_Digit_2

        second digit to display while entering the key

        See Also:
        Constant Field Values
      • AR_Text

        private final short[] AR_Text
        Text to be displayed when Mode. was selected.
      • Memory_Text

        private final short[] Memory_Text
        Text to be displayed when Mode. was selected.
      • Text

        private final short Text
        The character which make the difference between Min, MR, M+ M-
      • Backup_A_Active

        private net.sourceforge.uiq3.calculator.ICalculator.AlphaRegisterType Backup_A_Active
        Active A register.
        A_Numeric
        Alpha register to enter and display numeric results.
        A_Text
        Alpha register to enter and display textual results.
        A_Message
        Alpha register to display messages.
        A_Key
        Alpha register to merge key operations.
      • Backup_Display_Mode_Numeric

        private net.sourceforge.uiq3.calculator.ICalculator.DisplayType Backup_Display_Mode_Numeric
        Current display mode
        Display_Alpha
        Displays the content of the Alpha register.
        Display_L
        Displays the content of the L0 aka X register.
        Display_Formated
        Displays the content of the L0 aka X register inside an alpha
      • Backup_Display_Mode_Text

        private net.sourceforge.uiq3.calculator.ICalculator.DisplayType Backup_Display_Mode_Text
        Current display mode
        Display_Alpha
        Displays the content of the Alpha register.
        Display_L
        Displays the content of the L0 aka X register.
        Display_Formated
        Displays the content of the L0 aka X register inside an alpha
      • Memory_Register

        private int Memory_Register
        current dot value
    • Constructor Detail

      • Key_M

        Key_M​(Calculator Owner,
              short Normal,
              short Text,
              short Inv_Normal,
              short Normal_Alpha,
              short Inv_Alpha)
        Parameters:
        Owner - Calculator owning the key
        Normal - Normal operations
        Inv_Normal - Inverse operation
        Normal_Alpha - Normal_Alpha characters
        Inv_Alpha - Inverse Normal_Alpha characters
        Text - indicating the memory operation
    • Method Detail

      • Execute_Digit_1

        private void Execute_Digit_1​(short Key_Code)
                              throws M_Error
        Throws:
        M_Error
      • Execute_Digit_2

        private void Execute_Digit_2​(short Key_Code)
                              throws M_Error
        Throws:
        M_Error
      • Execute_None

        private void Execute_None()
      • Store_Operation

        private void Store_Operation​(boolean F_Register)
                              throws M_Error
        Parameters:
        F_Register - M or MF register?
        Throws:
        M_Error - Calculator memory exhausted
      • toString

        @NotNull
        public @NotNull String toString()
        Operation as java string
        Overrides:
        toString in class Key_Simple
        Returns:
        String representation