public class BtrpSet extends DefaultBtrpOperand
BtrpOperand.Type| Constructor and Description |
|---|
BtrpSet(int d,
BtrpOperand.Type ty)
Make a new set with a specific degree and type
|
| Modifier and Type | Method and Description |
|---|---|
BtrpSet |
copy() |
int |
degree()
Get the degree of the operand.
|
BtrpSet |
div(BtrpOperand nb)
Divides this operand by another one.
|
BtrpNumber |
eq(BtrpOperand other)
Check if this operand is equals to another one.
|
boolean |
equals(Object o) |
List<BtrpOperand> |
getValues() |
int |
hashCode() |
BtrpSet |
minus(BtrpOperand s)
Computes the difference between this operand and another one.
|
BtrpSet |
plus(BtrpOperand s)
Computes the addition of this operand with another one.
|
BtrpSet |
power(BtrpOperand nb)
Computes the power of this operand.
|
BtrpSet |
remainder(BtrpOperand other)
Computes the remainder of this operand division by another one
|
int |
size()
Get the number of operand in this set.
|
BtrpSet |
times(BtrpOperand s)
Multiply this operand by another one
|
String |
toString() |
BtrpOperand.Type |
type()
Get the type of the operand.
|
geq, gt, label, negate, not, prettyType, prettyType, prettyType, setLabelpublic BtrpSet(int d,
BtrpOperand.Type ty)
d - the degree of the setty - the type of the setpublic BtrpOperand.Type type()
BtrpOperandpublic BtrpSet plus(BtrpOperand s)
BtrpOperandplus in interface BtrpOperandplus in class DefaultBtrpOperands - the other operandpublic BtrpSet minus(BtrpOperand s)
BtrpOperandminus in interface BtrpOperandminus in class DefaultBtrpOperands - the other operandpublic int size()
public int degree()
BtrpOperandpublic BtrpSet remainder(BtrpOperand other)
BtrpOperandremainder in interface BtrpOperandremainder in class DefaultBtrpOperandother - the other operandpublic BtrpSet div(BtrpOperand nb)
BtrpOperanddiv in interface BtrpOperanddiv in class DefaultBtrpOperandnb - the other operandpublic BtrpSet times(BtrpOperand s)
BtrpOperandtimes in interface BtrpOperandtimes in class DefaultBtrpOperands - the other operandpublic BtrpSet power(BtrpOperand nb)
BtrpOperandpower in interface BtrpOperandpower in class DefaultBtrpOperandnb - the power coefficient. Must be strictly positivepublic BtrpSet copy()
public BtrpNumber eq(BtrpOperand other)
BtrpOperandeq in interface BtrpOperandeq in class DefaultBtrpOperandother - the operand to compare toBtrpNumber.TRUE if both operand are equals, BtrpNumber.FALSE otherwisepublic List<BtrpOperand> getValues()
Copyright © 2016 University of Nice-Sophia Antipolis. All Rights Reserved.