public class DegreeVariable extends Degree
Modifier and Type | Method and Description |
---|---|
Expression |
addToExpression(Expression expr)
Adds the degree to an expression.
|
Inequation |
createInequalityWithDegreeRHS(Expression expr,
char inequationType)
Gets an inequality of the form (expression, type, degree).
|
boolean |
equals(Degree d) |
Variable |
getVariable()
Gets the variable which defines the degree.
|
boolean |
isNumeric()
Checks if the object is a numeric degree.
|
Expression |
multiplyConstant(java.lang.Double constant)
Multiplies the degree and a real number.
|
Expression |
subtractFromExpression(Expression expr)
Subtracts the degree to an expression.
|
java.lang.String |
toString()
Gets the name of the degree.
|
public Variable getVariable()
public Inequation createInequalityWithDegreeRHS(Expression expr, char inequationType)
Degree
createInequalityWithDegreeRHS
in class Degree
expr
- An expression.inequationType
- A type of inequality.public java.lang.String toString()
Degree
public boolean isNumeric()
Degree
public Expression addToExpression(Expression expr)
Degree
addToExpression
in class Degree
expr
- An expression.public Expression subtractFromExpression(Expression expr)
Degree
subtractFromExpression
in class Degree
expr
- An expression.public Expression multiplyConstant(java.lang.Double constant)
Degree
multiplyConstant
in class Degree
constant
- A real number.