|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectreasoner.Trapezoid
reasoner.ConcreteConcept
public class ConcreteConcept
This class represents a Concrete Concept, having a Trapezoid as membership function and contained in a KnowledgeBase
Field Summary | |
---|---|
protected KnowledgeBase |
kb
the KnowledgeBase |
private java.lang.String |
name
the name |
private double |
NOW
the NOW constant |
private double |
SELF
the SELF constant |
Fields inherited from class reasoner.Trapezoid |
---|
formatter, maxval, meaning, minval, patternAround, patternBetween |
Constructor Summary | |
---|---|
ConcreteConcept(java.lang.Double a1,
java.lang.Double b1,
java.lang.Double c1,
java.lang.Double d1,
java.lang.Double max,
KnowledgeBase kb)
Constructor by vertices, max and KnowledgeBase |
|
ConcreteConcept(java.lang.String name,
java.lang.Double a1,
java.lang.Double b1,
java.lang.Double c1,
java.lang.Double d1,
java.lang.Double max,
KnowledgeBase kb)
Constructor by name, vertices, max and KnowledgeBase |
|
ConcreteConcept(java.lang.String name,
KnowledgeBase kb)
Constructor by name and KnowledgeBase |
Method Summary | |
---|---|
ConcreteConcept |
diff(ConcreteConcept t)
FuzzySet difference between this ConcreteConcept and a second one |
KnowledgeBase |
getKb()
|
double |
getMaxval()
|
double |
getMinval()
|
java.lang.String |
getName()
|
double |
getNOW()
|
double |
getSELF()
|
ConcreteConcept |
intersection(FuzzySet f)
FuzzySet intersection between this ConcreteConcept and a generic FuzzySet |
void |
print()
Prints a String representation for this Concrete Concept |
void |
print(java.util.TreeSet<java.lang.Double> lambda2)
Prints Lambda, the alpha level set for membership values, as a TreeSet |
ConcreteConcept |
prod(ConcreteConcept t)
FuzzySet product between this ConcreteConcept and a second one |
ConcreteConcept |
ratio(ConcreteConcept t)
FuzzySet ratio between this ConcreteConcept and a second one. |
void |
setKb(KnowledgeBase kb)
|
void |
setMaxval(double maxval)
|
void |
setMinval(double minval)
|
void |
setName(java.lang.String name1)
|
void |
setNOW(double now)
|
void |
setSELF(double self)
|
protected void |
setVertices(java.lang.Double a1,
java.lang.Double b1,
java.lang.Double c1,
java.lang.Double d1,
java.lang.Double max)
Sets vertices and max value. |
protected void |
setVerticesAndMin(java.lang.Double a1,
java.lang.Double b1,
java.lang.Double c1,
java.lang.Double d1,
java.lang.Double max,
java.lang.Double min)
Sets vertices, max and min value. |
ConcreteConcept |
sum(ConcreteConcept t)
FuzzySet sum between this ConcreteConcept and a second one |
Concept |
toConcept()
Converts this ConcreteConcept in a Concept |
java.lang.String |
toString()
String representation for this Concrete Concept |
ConcreteConcept |
union(FuzzySet f)
FuzzySet union between this ConcreteConcept and a generic FuzzySet |
Methods inherited from class reasoner.Trapezoid |
---|
card, diff, fixVertices, geta, getAroundValue, getb, getBetweenValue, getc, getd, getKeys, getLambda, getMeaning, getVertValues, prod, qvalue, ratio, seta, setb, setc, setd, setMeaning, setMeaning, setVertices, sum |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
protected KnowledgeBase kb
private double SELF
private double NOW
Constructor Detail |
---|
public ConcreteConcept(java.lang.Double a1, java.lang.Double b1, java.lang.Double c1, java.lang.Double d1, java.lang.Double max, KnowledgeBase kb)
a1
- first verticeb1
- second verticec1
- third verticed1
- forth verticemax
- the max valuekb
- the KnowledgeBasepublic ConcreteConcept(java.lang.String name, java.lang.Double a1, java.lang.Double b1, java.lang.Double c1, java.lang.Double d1, java.lang.Double max, KnowledgeBase kb)
name
- the namea1
- first verticeb1
- second verticec1
- third verticed1
- forth verticemax
- the max valuekb
- the KnowledgeBasepublic ConcreteConcept(java.lang.String name, KnowledgeBase kb)
name
- the namekb
- the KnowledgeBaseMethod Detail |
---|
public Concept toConcept()
public void setName(java.lang.String name1)
setName
in class Trapezoid
name1
- the namepublic java.lang.String getName()
getName
in class Trapezoid
protected void setVertices(java.lang.Double a1, java.lang.Double b1, java.lang.Double c1, java.lang.Double d1, java.lang.Double max)
a1
- first verticeb1
- second verticec1
- third verticed1
- forth verticemax
- the max valueprotected void setVerticesAndMin(java.lang.Double a1, java.lang.Double b1, java.lang.Double c1, java.lang.Double d1, java.lang.Double max, java.lang.Double min)
a1
- first verticeb1
- second verticec1
- third verticed1
- forth verticemax
- the max valuemin
- the min valuepublic java.lang.String toString()
toString
in class Trapezoid
Trapezoid.toString()
public void print()
print
in class Trapezoid
Trapezoid.print()
public ConcreteConcept sum(ConcreteConcept t)
t
- the second ConcreteConcept
public ConcreteConcept diff(ConcreteConcept t)
t
- the second ConcreteConcept
public ConcreteConcept prod(ConcreteConcept t)
t
- the second ConcreteConcept
public ConcreteConcept ratio(ConcreteConcept t)
t
- the second ConcreteConcept
public ConcreteConcept intersection(FuzzySet f)
intersection
in class Trapezoid
f
- the FuzzySet
public ConcreteConcept union(FuzzySet f)
union
in class Trapezoid
f
- the FuzzySet
public void print(java.util.TreeSet<java.lang.Double> lambda2)
lambda2
- the Lambdapublic KnowledgeBase getKb()
public void setKb(KnowledgeBase kb)
kb
- the kb to setpublic double getMaxval()
getMaxval
in class Trapezoid
public void setMaxval(double maxval)
setMaxval
in class Trapezoid
maxval
- the maxval to setpublic double getMinval()
getMinval
in class Trapezoid
public void setMinval(double minval)
setMinval
in class Trapezoid
minval
- the minval to setpublic double getNOW()
public void setNOW(double now)
now
- the NOW to setpublic double getSELF()
public void setSELF(double self)
self
- the SELF to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |