Class Op_Min_IO

  • All Implemented Interfaces:
    net.sourceforge.uiq3.calculator.IClear, net.sourceforge.uiq3.calculator.IOperation, net.sourceforge.uiq3.calculator.IOwned_Operation, net.sourceforge.uiq3.calculator.IProgrammable_Operation, IProgrammable_Operation

    final class Op_Min_IO
    extends Op_M
    Halt Calculator
    Author:
    "Martin Krischik" «krischik@users.sourceforge.net»
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private @NotNull Op_RSLOAD Load
      Load to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.
      private static Logger logger
      class logger instance
      private @NotNull Op_Peek Peek
      Peek to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.
      private @NotNull Op_Poke Poke
      Poke to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.
      private @NotNull Op_PRT Print
      Print has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.
      private @NotNull Op_RSSAVE Save
      Save to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.
      private static String TAG
      class logger tag.
      private @NotNull Op_VER Verify
      Verify to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.
    • Constructor Summary

      Constructors 
      Constructor Description
      Op_Min_IO​(Calculator Owner)
      Create operation and attach to owning calculator.
    • Field Detail

      • logger

        private static final Logger logger

        class logger instance

      • TAG

        private static final String TAG

        class logger tag.

      • Load

        @NotNull
        private final @NotNull Op_RSLOAD Load

        Load to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.

      • Peek

        @NotNull
        private final @NotNull Op_Peek Peek

        Peek to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.

      • Poke

        @NotNull
        private final @NotNull Op_Poke Poke

        Poke to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.

      • Print

        @NotNull
        private final @NotNull Op_PRT Print

        Print has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.

      • Save

        @NotNull
        private final @NotNull Op_RSSAVE Save

        Save to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.

      • Verify

        @NotNull
        private final @NotNull Op_VER Verify

        Verify to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.

    • Constructor Detail

      • Op_Min_IO

        Op_Min_IO​(Calculator Owner)
        Create operation and attach to owning calculator.
        Parameters:
        Owner - Calculator which will call this Opcode
    • Method Detail

      • Display

        @NotNull
        public @org.jetbrains.annotations.NotNull short[] Display​(short Opcode)
                                                           throws Op_Error
        Display operation in program mode.
        Throws:
        Op_Error
        See Also:
        IProgrammable_Operation.Display(short)
      • Execute

        public void Execute​(short Opcode)
                     throws net.sourceforge.uiq3.calculator.Error
        Specified by:
        Execute in interface net.sourceforge.uiq3.calculator.IOperation
        Overrides:
        Execute in class Op_M
        Throws:
        Error - something went wrong
        M_Error - Memory accessed does not exist
        net.sourceforge.uiq3.calculator.Error
        See Also:
        IOperation.Execute(short)
      • ExFn_Display

        @NotNull
        private @org.jetbrains.annotations.NotNull short[] ExFn_Display​(short Opcode)
                                                                 throws Op_Error

        Display the ExFn function mapped to this Opcode.

        Throws:
        Op_Error - Illegal operation
        See Also:
        IOperation.Execute(short)
      • ExFn_Execute

        private void ExFn_Execute​(short Opcode)
                           throws net.sourceforge.uiq3.calculator.Error

        Execute the ExFn function mapped to this Opcode.

        Throws:
        Op_Error - Illegal operation
        net.sourceforge.uiq3.calculator.Error
        See Also:
        IOperation.Execute(short)