Package net.sourceforge.uiq3.fx603p
Class Op_RND
- java.lang.Object
-
- net.sourceforge.uiq3.fx603p.Owned_Operation
-
- net.sourceforge.uiq3.fx603p.Programmable_Operation
-
- net.sourceforge.uiq3.fx603p.Op_RND
-
- All Implemented Interfaces:
IClear,IOperation,IOwned_Operation,IProgrammable_Operation,IProgrammable_Operation
final class Op_RND extends Programmable_Operation
Round of fix point display- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Field Summary
Fields Modifier and Type Field Description private NumberFull_ValueFull value of the last value processed.private static LoggerLoggerClass logger instance.private NumberRound_ValueRounded value of the last value processed.private 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_RND(@NotNull Calculator Owner)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 virtual CPU command or key stroke-
Methods inherited from class net.sourceforge.uiq3.fx603p.Programmable_Operation
Token
-
Methods inherited from class net.sourceforge.uiq3.fx603p.Owned_Operation
µReset, µReset, toString
-
-
-
-
Field Detail
-
Logger
private static final Logger Logger
Class logger instance.
-
TAG
private static final String TAG
Class logger tag.
-
Full_Value
@NotNull private Number Full_Value
Full value of the last value processed.
-
Round_Value
@NotNull private Number Round_Value
Rounded value of the last value processed.
-
-
Constructor Detail
-
Op_RND
Op_RND(@NotNull @NotNull 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
public short @NotNull [] Display(short Opcode) throws Op_ErrorDisplay Operatin in Prog mode.- Parameters:
Opcode- Virtual CPU Operation to be executed- Returns:
- String to be displayed
- Throws:
Op_Error- See Also:
IProgrammable_Operation.Display(short)
-
Execute
public void Execute(short Opcode) throws ErrorDescription copied from interface:IOperationExecute virtual CPU command or key stroke
- 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)
-
-