Package net.sourceforge.uiq3.fx602p
Class Op_Num
- java.lang.Object
-
- net.sourceforge.uiq3.fx602p.Owned_Operation
-
- net.sourceforge.uiq3.fx602p.Op_Num
-
- All Implemented Interfaces:
IClear
,IOperation
,IOwned_Operation
,IProgrammable_Operation
final class Op_Num extends Owned_Operation implements IProgrammable_Operation
Halt Calculator- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Constructor Summary
Constructors Constructor Description Op_Num(@NotNull Calculator Owner)
Create operation and attach to owning calculator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
Add_Digit(@NotNull Calculator Owner, short Digit)
Add a Digitvoid
Clear(boolean AC)
Reset state - for state full operations.short @NotNull []
Display(short Opcode)
Display operation in Prog mode.void
Execute(short Opcode)
Execute token representing a 0-
Methods inherited from class net.sourceforge.uiq3.fx602p.Owned_Operation
µReset, toString
-
-
-
-
Constructor Detail
-
Op_Num
Op_Num(@NotNull @NotNull Calculator Owner)
Create operation and attach to owning calculator.- Parameters:
Owner
- Calculator which will call this Opcode
-
-
Method Detail
-
Add_Digit
private static void Add_Digit(@NotNull @NotNull Calculator Owner, short Digit) throws Error
Add a Digit
-
Clear
public void Clear(boolean AC)
Reset state - for state full operations.- Specified by:
Clear
in interfaceIClear
- Parameters:
AC
- All Clear reset- See Also:
IClear.Clear(boolean)
-
Display
public short @NotNull [] Display(short Opcode)
Display operation in Prog mode.- Specified by:
Display
in interfaceIProgrammable_Operation
- 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 Error
Execute token representing a 0- Specified by:
Execute
in interfaceIOperation
- 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)
-
-