Class Interface

  • Direct Known Subclasses:
    Printer, Serial, Tape

    public abstract class Interface
    extends Object

    Simulation of the some calculator interface.

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

      • Special_Character

        private static final String[] Special_Character

        Characters which are not ASCII and can be used in Alpha strings.

      • Special_Character_Token

        private static final String[] Special_Character_Token

        Token used for non ASCII characters.

      • TAG

        private static final String TAG

        class logger tag.

      • logger

        private static final Logger logger

        class logger instance

      • Enable

        private boolean Enable
        When true the interface is enabled. A disabled interface will ignore all input and output.
    • Constructor Detail

      • Interface

        protected Interface()
    • Method Detail

      • Convert_To_Java

        public static String Convert_To_Java​(int @NotNull [] Alpha_String)
        Parameters:
        Alpha_String - Alpha Line
        Returns:
        Java String
      • Convert_To_Java

        public static String Convert_To_Java​(short Alpha)
        Parameters:
        Alpha - Alpha Line
        Returns:
        Java String
      • Convert_To_Java

        public static String Convert_To_Java​(short @Nullable [] Alpha_String)
        Parameters:
        Alpha_String - Alpha Line
        Returns:
        Java String
      • Convert_To_Token

        public static String Convert_To_Token​(short Alpha)
        Parameters:
        Alpha - Alpha Line
        Returns:
        Java String
      • Is_Enabled

        public final boolean Is_Enabled()
        A disabled interface will ignore all input and output.
        Returns:
        When true the interface is enabled.
      • Set_Enable

        public final void Set_Enable​(boolean Enable)
        A disabled interface will ignore all input and output.
        Parameters:
        Enable - Set to true to enable the interface.
      • toString

        @NotNull
        @TestOnly
        public @NotNull String toString()
        Overrides:
        toString in class Object