Interface IA_Register

  • All Superinterfaces:
    IClear, IOperation
    All Known Implementing Classes:
    A_Register, A_Register

    public interface IA_Register
    extends IClear, IOperation
    Interface for FX-602P and FX-603P alpha register
    Since:
    1.0
    Version:
    1.0
    Author:
    Martin Krischik «krischik@users.sourceforge.net»
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  IA_Register.Mode_Type
      Register mode Mode_Normal normal numeric entry mode Mode_Fraction fraction entry mode Mode_Exponent exponent entry mode Mode_Begin_Alpha begins alpha mode Keyboard_Alpha alpha entry mode
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void Add_Negative()
      toggle plus / minus for either mantissa or exponent.
      void Add_Numeric​(short Digit)
      Add a numeric value - this is a non scrolling operation.
      void Clear_Display_Value​(int From, int To)
      Clear content of Register
      void Clear_Print_Value()
      Clear content of Register
      void Create_Print_Value()
      Create the optional print value which can be up to 40 characters.
      int Display_Count()
      Count the amount of characters inserted to the display.
      void Display_Count​(int Char_Count)
      Count the amount of characters inserted to the display.
      void Display_Message​(short @NotNull [] Text)
      Display an informative message until next key is pressed.
      short @NotNull [] Filename_Value()
      Get value of the register for use with as filename.
      int Insert​(short @NotNull [] Text)
      Insert content of an String.
      void Insert_X()
      Insert content of L0 aka X register into the string.
      void Limit_Alpha​(int Num_Char)
      Limit Alpha text to Start_Char
      @NotNull IA_Register.Mode_Type Mode()
      Get alpha register entry mode
      void Mode​(@NotNull IA_Register.Mode_Type Mode)
      Set alpha register entry mode
      Number Numeric_Value()
      Get value of the register for use with as BCD.
      short[] Print_Value()
      Get value of the register for use with printer or tape interface.
      void Print_Value​(short @NotNull [] Value, int Size)
      Set value of the register for use with printer or tape interface.
      int Printer_Count()
      Count the amount of characters inserted to the printer.
      void Printer_Count​(int Char_Count)
      Count the amount of characters inserted to the printer.
      void Start_Alpha()
      Start a new alpha run.
      void Start_Decimal_Fraction()
      start to enter the part behind the fraction mark point
      void Start_Exponent()
      Start to enter the exponent.
      short[] Value()
      Get value of the register for use with display.
      void Value​(short @NotNull [] Value)
      Value of the register.
      • Methods inherited from interface net.sourceforge.uiq3.calculator.IClear

        Clear
    • Method Detail

      • Add_Negative

        void Add_Negative()
        toggle plus / minus for either mantissa or exponent.
      • Add_Numeric

        void Add_Numeric​(short Digit)
                  throws Error
        Add a numeric value - this is a non scrolling operation.
        Parameters:
        Digit - the digit to add
        Throws:
        Error - something went wrong
      • Clear_Display_Value

        void Clear_Display_Value​(int From,
                                 int To)
        Clear content of Register
        Parameters:
        From - First character to clean
        To - Last character to clean
      • Create_Print_Value

        void Create_Print_Value()
        Create the optional print value which can be up to 40 characters.
      • Display_Count

        int Display_Count()
        Count the amount of characters inserted to the display.
        Returns:
        amount of characters in display
      • Display_Count

        void Display_Count​(int Char_Count)
        Count the amount of characters inserted to the display.
        Parameters:
        Char_Count - amount of characters
      • Display_Message

        void Display_Message​(short @NotNull [] Text)
        Display an informative message until next key is pressed.
        Parameters:
        Text - Test to be displayed
      • Filename_Value

        short @NotNull [] Filename_Value()
        Get value of the register for use with as filename.
        Returns:
        current value
      • Insert

        int Insert​(short @NotNull [] Text)
            throws Error
        Insert content of an String.
        Parameters:
        Text - Text to insert without leading spaces and exponent
        Returns:
        Characters inserted
        Throws:
        Error
      • Insert_X

        void Insert_X()
               throws Error
        Insert content of L0 aka X register into the string.
        Throws:
        Error
      • Limit_Alpha

        void Limit_Alpha​(int Num_Char)
        Limit Alpha text to Start_Char
        Parameters:
        Num_Char - max char allowed
      • Mode

        @NotNull
        @NotNull IA_Register.Mode_Type Mode()
        Get alpha register entry mode
        Returns:
        Mode_Normal
        normal numeric entry mode
        Mode_Fraction
        fraction entry mode
        Mode_Exponent
        exponent entry mode
        Mode_Begin_Alpha
        begins alpha mode
        Keyboard_Alpha
        alpha entry mode
      • Mode

        void Mode​(@NotNull
                  @NotNull IA_Register.Mode_Type Mode)
        Set alpha register entry mode
        Parameters:
        Mode -
        Mode_Normal
        normal numeric entry mode
        Mode_Fraction
        fraction entry mode
        Mode_Exponent
        exponent entry mode
        Mode_Begin_Alpha
        begins alpha mode
        Keyboard_Alpha
        alpha entry mode
      • Numeric_Value

        @NotNull
        Number Numeric_Value()
                      throws Error
        Get value of the register for use with as BCD.
        Returns:
        current value
        Throws:
        Error
      • Print_Value

        short[] Print_Value()
        Get value of the register for use with printer or tape interface.
        Returns:
        current value
      • Print_Value

        void Print_Value​(short @NotNull [] Value,
                         int Size)
        Set value of the register for use with printer or tape interface. Also contains a backup of the alpha string for the append function
        Parameters:
        Value - Value
        Size - Characters used
      • Printer_Count

        void Printer_Count​(int Char_Count)
        Count the amount of characters inserted to the printer.
        Parameters:
        Char_Count - amount of characters to print
      • Printer_Count

        int Printer_Count()
        Count the amount of characters inserted to the printer.
        Returns:
        amount of characters in print
      • Start_Alpha

        void Start_Alpha()
        Start a new alpha run. This flag is needed for proper handling of the ; (append) token.
      • Start_Decimal_Fraction

        void Start_Decimal_Fraction()
        start to enter the part behind the fraction mark point
      • Start_Exponent

        void Start_Exponent()
        Start to enter the exponent.
      • Value

        short[] Value()
        Get value of the register for use with display.
        Returns:
        current value
      • Value

        void Value​(short @NotNull [] Value)
        Value of the register.
        Parameters:
        Value - new value