|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectreasoner.Individual
public abstract class Individual
This abstract class represents the generic Individuals. Every Individual has a name and a time and is contained in a KnowledgeBase. Subclass are StaticInd and DynamicInd only.
Field Summary | |
---|---|
protected KnowledgeBase |
kb
|
protected java.lang.String |
name
|
protected static double |
NOW
|
protected static double |
SELF
|
protected double |
time
|
Constructor Summary | |
---|---|
Individual(java.lang.String name,
KnowledgeBase kb)
Constructor for the generic Individual, by name and KnowledgeBase |
Method Summary | |
---|---|
int |
compareTo(Individual i)
Compares by name this Individual with a given one |
abstract double |
eval(Concept c)
Evaluates the membership value for this Individual in the given Concept |
KnowledgeBase |
getKb()
|
java.lang.String |
getName()
|
double |
getNOW()
|
double |
getSELF()
|
double |
getTime()
If this individual does'nt belong to any UniversalLine, it's time is NOW; otherwise, it's time is set on creation |
void |
setKb(KnowledgeBase kb)
|
void |
setName(java.lang.String name)
|
private void |
setNOW(double now)
|
private void |
setSELF(double self)
|
void |
setTime(double time)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected double time
protected static double SELF
protected static double NOW
protected KnowledgeBase kb
Constructor Detail |
---|
public Individual(java.lang.String name, KnowledgeBase kb)
name
- the namekb
- the KnowledgeBaseMethod Detail |
---|
public abstract double eval(Concept c)
c
- the Conceptpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic double getTime()
public void setTime(double time)
time
- the time to setpublic int compareTo(Individual i)
compareTo
in interface java.lang.Comparable<Individual>
i
- the given Individual
public KnowledgeBase getKb()
public void setKb(KnowledgeBase kb)
kb
- the KnowledgeBase to setpublic double getSELF()
private void setSELF(double self)
self
- the constant SELF to setpublic double getNOW()
private void setNOW(double now)
now
- the constant NOW to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |