public class BigRationalOperations extends SimpleOperations
Modifier and Type | Field and Description |
---|---|
static Filter |
EITHER_BIG_RATIONAL
Either must be big rationals.
|
static Filter |
TOP_BIG_RATIONAL
Top must be a big rational.
|
Constructor and Description |
---|
BigRationalOperations() |
Modifier and Type | Method and Description |
---|---|
void |
execute(Task task,
SimpleOperation.Reference reference)
Executes an operation code within the context of a task.
|
static BigRational |
popBigRationalValue(Stack stack)
Pops the big rational at the top of the stack.
|
protected void |
setUp()
Sets up operations.
|
getParams, getRegistrations, getThisLogger, setUp
public static final Filter EITHER_BIG_RATIONAL
public static final Filter TOP_BIG_RATIONAL
public static BigRational popBigRationalValue(Stack stack) throws Stack.AccessException
stack
- The stack.Stack.AccessException
- When appropriate.public void execute(Task task, SimpleOperation.Reference reference) throws Task.ExecuteException, Stack.AccessException
Must be implemented by each module.
execute
in class SimpleOperations
task
- Task executing the program.reference
- Reference to the operation.Task.ExecuteException
- when appropriate.Stack.AccessException
- When raised by the stack.protected void setUp() throws Operation.OverloadException
setUp
in class Operations
Operation.OverloadException
- From Operation.register(java.util.Map<java.lang.String, org.rvpf.processor.engine.rpn.operation.Operation>)
.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.