Class Op_Percent

  • 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_Percent
    extends Programmable_Operation
    Halt Calculator
    Author:
    "Martin Krischik" «krischik@users.sourceforge.net»
    • Field Detail

      • Display_Text

        private static final short[] Display_Text
        Test to Dispay on Program, Print and Debug.
      • logger

        private static final Logger logger

        class logger instance

      • TAG

        private static final String TAG

        class logger tag.

      • Last_Y

        @Nullable
        private net.sourceforge.uiq3.math.Number Last_Y
        Last Y register - needed for some more complex percentage calculation
    • Constructor Detail

      • Op_Percent

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

      • Clear

        public void Clear​(boolean AC)
        Reset state - for state full operations.
        Parameters:
        AC - All Clear reset
        See Also:
        IClear.Clear(boolean)
      • Display

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

        public void Execute​(short Opcode)
                     throws net.sourceforge.uiq3.calculator.Error
        Throws:
        Error - any old calculator error
        net.sourceforge.uiq3.calculator.Error
        See Also:
        IOperation.Execute(short)