public interface BtrpOperand extends Copyable<BtrpOperand>
| Modifier and Type | Interface and Description |
|---|---|
static class |
BtrpOperand.Type
The possible operand type.
|
| Modifier and Type | Method and Description |
|---|---|
int |
degree()
Get the degree of the operand.
|
BtrpOperand |
div(BtrpOperand other)
Divides this operand by another one.
|
BtrpNumber |
eq(BtrpOperand other)
Check if this operand is equals to another one.
|
BtrpNumber |
geq(BtrpOperand other)
Check if this operand is greater or equals to another one.
|
BtrpNumber |
gt(BtrpOperand other)
Check if this operand is strictly greater than another one.
|
String |
label()
Get the label of the operand.
|
BtrpOperand |
minus(BtrpOperand other)
Computes the difference between this operand and another one.
|
BtrpOperand |
negate()
Computes the negation of this operand.
|
BtrpOperand |
not()
Compute the opposite of the operand.
|
BtrpOperand |
plus(BtrpOperand other)
Computes the addition of this operand with another one.
|
BtrpOperand |
power(BtrpOperand nb)
Computes the power of this operand.
|
String |
prettyType()
Pretty textual representation of the element type.
|
BtrpOperand |
remainder(BtrpOperand other)
Computes the remainder of this operand division by another one
|
void |
setLabel(String lbl)
Set the label of the operand.
|
BtrpOperand |
times(BtrpOperand other)
Multiply this operand by another one
|
BtrpOperand.Type |
type()
Get the type of the operand.
|
BtrpOperand not()
BtrpOperand.Type type()
int degree()
String label()
null otherwisevoid setLabel(String lbl)
lbl - the label to useBtrpOperand power(BtrpOperand nb)
nb - the power coefficient. Must be strictly positiveBtrpOperand plus(BtrpOperand other)
other - the other operandBtrpOperand minus(BtrpOperand other)
other - the other operandBtrpOperand negate()
BtrpOperand times(BtrpOperand other)
other - the other operandBtrpOperand div(BtrpOperand other)
other - the other operandBtrpOperand remainder(BtrpOperand other)
other - the other operandBtrpNumber eq(BtrpOperand other)
other - the operand to compare toBtrpNumber.TRUE if both operand are equals, BtrpNumber.FALSE otherwiseBtrpNumber geq(BtrpOperand other)
other - the operand to compare toBtrpNumber.TRUE if this operand is greater or equals, BtrpNumber.FALSE otherwiseBtrpNumber gt(BtrpOperand other)
other - the operand to compare toBtrpNumber.TRUE if this operand is strictly greater, BtrpNumber.FALSE otherwiseString prettyType()
Copyright © 2016 University of Nice-Sophia Antipolis. All Rights Reserved.