Package net.sourceforge.uiq3.fx603p
Class Op_Equal
- java.lang.Object
-
- net.sourceforge.uiq3.fx603p.Owned_Operation
-
- net.sourceforge.uiq3.fx603p.Programmable_Operation
-
- net.sourceforge.uiq3.fx603p.Op_Equal
-
- All Implemented Interfaces:
IClear,IOperation,IOwned_Operation,IProgrammable_Operation,IProgrammable_Operation
final class Op_Equal extends Programmable_Operation
Equal or C hex number- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Field Summary
Fields Modifier and Type Field Description private static short @NotNull []Display_ExtFn_TextText to Display on Program, Print and Debug when ExtFf is active.private short @NotNull []Display_TextText to be displayed in Prg mode.private static Loggerloggerclass logger instanceprivate L_Register.Operation_TypeOperationEqual operation to be executedprivate static StringTAGclass logger tag.-
Fields inherited from class net.sourceforge.uiq3.fx603p.Owned_Operation
Owner
-
Fields inherited from interface net.sourceforge.uiq3.fx603p.IProgrammable_Operation
No_Display
-
-
Constructor Summary
Constructors Constructor Description Op_Equal(Calculator Owner, L_Register.Operation_Type Operation, short @NotNull [] Display_Text)Create operation and attach to owning calculator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidClear(boolean AC)Reset state - for state full operations.short @NotNull []Display(short Opcode)Display Operatin in Prog mode.voidExecute(short Opcode)Execute Token for Kex Equal.@NotNull StringToken(short Opcode)string representation suitable for use with serial I/O.-
Methods inherited from class net.sourceforge.uiq3.fx603p.Owned_Operation
µReset, µReset, toString
-
-
-
-
Field Detail
-
Display_ExtFn_Text
private static final short @NotNull [] Display_ExtFn_Text
Text to Display on Program, Print and Debug when ExtFf is active.
-
TAG
private static final String TAG
class logger tag.
-
logger
private static final Logger logger
class logger instance
-
Display_Text
private final short @NotNull [] Display_Text
Text to be displayed in Prg mode.
-
Operation
private final L_Register.Operation_Type Operation
Equal operation to be executed
-
-
Constructor Detail
-
Op_Equal
Op_Equal(Calculator Owner, L_Register.Operation_Type Operation, short @NotNull [] Display_Text)
Create operation and attach to owning calculator.- Parameters:
Owner- Calculator which will call this OpcodeOperation- Infix operation to be executed.Display_Text- text to display
-
-
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
public short @NotNull [] Display(short Opcode)
Display Operatin in Prog mode.- Parameters:
Opcode- Virtual CPU Operation to be executed- Returns:
- String to be displayed
- See Also:
IProgrammable_Operation.Display(short)
-
Execute
public void Execute(short Opcode) throws ErrorExecute Token for Kex Equal.- Parameters:
Opcode- Virtual CPU Operation to be executed- Throws:
Error- "Error" is an abstract exception class representing all possible errors the calculator can produce.Error- See Also:
IOperation.Execute(short)
-
Token
@NotNull public @NotNull String Token(short Opcode) throws Op_Error
string representation suitable for use with serial I/O.
- Specified by:
Tokenin interfaceIProgrammable_Operation- Overrides:
Tokenin classProgrammable_Operation- Parameters:
Opcode- Virtual CPU Operation to be executed- Returns:
- pure ASCII String
- Throws:
Op_Error
-
-