|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfuzzydl.Degree
public abstract class Degree
Degree.
| Constructor Summary | |
|---|---|
Degree()
|
|
| Method Summary | |
|---|---|
abstract Expression |
addToExpression(Expression expr)
Adds the degree to an expression. |
abstract Inequation |
createInequalityWithDegreeRHS(Expression expr,
int inequationType)
Gets an inequality of the form (expression, type, degree). |
static Degree |
getDegree(java.lang.Double numeric)
Constructor for a numeric degree. |
static Degree |
getDegree(Expression expr)
Constructor for an expression degree. |
static Degree |
getDegree(Variable variable)
Constructor for a variable degree. |
abstract double |
getSolutionValue()
Gets a numerical value of the solution. |
abstract boolean |
isNumeric()
Checks if the object is a numeric degree. |
abstract Expression |
multiplyConstant(java.lang.Double constant)
Multiplies the degree and a real number. |
abstract Expression |
subtractFromExpression(Expression expr)
Subtracts the degree to an expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Degree()
| Method Detail |
|---|
public static Degree getDegree(java.lang.Double numeric)
numeric - A double number in [0,1].
public static Degree getDegree(Variable variable)
variable - A variable.
public static Degree getDegree(Expression expr)
expr - An expression.
public abstract boolean isNumeric()
public abstract double getSolutionValue()
public abstract Inequation createInequalityWithDegreeRHS(Expression expr,
int inequationType)
expr - An expression.inequationType - A type of inequality.
public abstract Expression addToExpression(Expression expr)
expr - An expression.
public abstract Expression subtractFromExpression(Expression expr)
expr - An expression.
public abstract Expression multiplyConstant(java.lang.Double constant)
constant - A real number.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||