|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfuzzydl.Degree
fuzzydl.DegreeNumeric
public class DegreeNumeric
Degree defined using a real number in [0,1].
| Constructor Summary | |
|---|---|
DegreeNumeric(double numeric)
|
|
| Method Summary | |
|---|---|
Expression |
addToExpression(Expression expr)
Adds the degree to an expression. |
Inequation |
createInequalityWithDegreeRHS(Expression expr,
int inequationType)
Gets an inequality of the form (expression, type, degree). |
double |
getNumericalValue()
Gets the numerical value which defines the degree. |
double |
getSolutionValue()
Gets a numerical value of the solution. |
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()
|
| Methods inherited from class fuzzydl.Degree |
|---|
getDegree, getDegree, getDegree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DegreeNumeric(double numeric)
| Method Detail |
|---|
public double getNumericalValue()
public Inequation createInequalityWithDegreeRHS(Expression expr,
int inequationType)
Degree
createInequalityWithDegreeRHS in class Degreeexpr - An expression.inequationType - A type of inequality.
public java.lang.String toString()
toString in class java.lang.Objectpublic double getSolutionValue()
Degree
getSolutionValue in class Degreepublic boolean isNumeric()
Degree
isNumeric in class Degreepublic Expression addToExpression(Expression expr)
Degree
addToExpression in class Degreeexpr - An expression.
public Expression subtractFromExpression(Expression expr)
Degree
subtractFromExpression in class Degreeexpr - An expression.
public Expression multiplyConstant(java.lang.Double constant)
Degree
multiplyConstant in class Degreeconstant - A real number.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||