Class Interface

  • Direct Known Subclasses:
    Printer, Tape

    public abstract class Interface
    extends Object

    Simulation of the some calculator interface.

    Author:
    "Martin Krischik" «krischik@users.sourceforge.net»
    • Field Detail

      • Alpha_To_Display

        @Nullable
        private static final @Nullable String @NotNull [] Alpha_To_Display
        Convert CASIO Alpha Character into Java String
      • Logger

        private static final Logger Logger

        Class logger instance.

      • TAG

        private static final String TAG

        Class logger tag.

      • Enable

        private boolean Enable

        When true the interface is enabled. A disabled interface will ignore all input and output.

    • Constructor Detail

      • Interface

        public Interface()
    • Method Detail

      • Convert_To_Java

        @NotNull
        public static @NotNull String Convert_To_Java​(short Alpha_Character)

        Convert an CASIO String to an Java String (using the old character set)

        Parameters:
        Alpha_Character - single alpha character
        Returns:
        Java String
      • Convert_To_Java

        @NotNull
        public static @NotNull String Convert_To_Java​(short @Nullable [] Alpha_String)

        Convert an CASIO String to an Java String (using the old character set)

        Parameters:
        Alpha_String - Alpha Line
        Returns:
        Java String
      • Enable

        public final void Enable​(boolean Enable)

        A disabled interface will ignore all input and output.

        Parameters:
        Enable - Set to true to enable the interface.
      • Is_Enabled

        public final boolean Is_Enabled()

        A disabled interface will ignore all input and output.

        Returns:
        When true the interface is enabled.