|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.isi.stella.Stella_Object edu.isi.stella.StandardObject edu.isi.stella.ContextSensitiveObject edu.isi.powerloom.logic.LogicObject edu.isi.powerloom.logic.TruthValue
public class TruthValue
Field Summary | |
---|---|
Keyword |
polarity
One of :TRUE, :FALSE, :UNKNOWN or :INCONSISTENT. |
double |
positiveScore
|
Keyword |
strength
Either NULL, :STRICT or :DEFAULT. |
Fields inherited from class edu.isi.powerloom.logic.LogicObject |
---|
dependentPropositionsIndex, dynamicSlots, surrogateValueInverse, variableValueInverse |
Fields inherited from class edu.isi.stella.ContextSensitiveObject |
---|
homeContext |
Constructor Summary | |
---|---|
TruthValue()
|
Method Summary | |
---|---|
static Stella_Object |
accessTruthValueSlotValue(TruthValue self,
Symbol slotname,
Stella_Object value,
boolean setvalueP)
|
static TruthValue |
conjoinTruthValues(TruthValue tv1,
TruthValue tv2)
Return the logical conjunction of truth values tv1 and tv2 . |
static boolean |
defaultTruthValueP(TruthValue self)
Return TRUE if self is a default truth value. |
static TruthValue |
disjoinTruthValues(TruthValue tv1,
TruthValue tv2)
Return the logical disjunction of truth values tv1 and tv2 . |
static boolean |
falseTruthValueP(TruthValue self)
Return TRUE if self represents some form of falsehood. |
static boolean |
inconsistentTruthValueP(TruthValue self)
Return TRUE if self represents INCONSISTENT. |
static TruthValue |
invertTruthValue(TruthValue self)
Return the logical negation of self . |
static TruthValue |
newTruthValue()
|
Surrogate |
primaryType()
Returns the primary type of self . |
static void |
printTruthValue(TruthValue self,
OutputStream stream)
|
static TruthValue |
strengthenTruthValue(TruthValue tv1,
TruthValue tv2)
If tv2 has greater strength than tv1 , adapt the strength of tv1 (not
its value!) and return the result. |
static boolean |
strictTruthValueP(TruthValue self)
Return TRUE if self is a strict truth value. |
static boolean |
trueTruthValueP(TruthValue self)
Return TRUE if self represents some form of truth. |
static boolean |
unknownTruthValueP(TruthValue self)
Return TRUE if self represents UNKNOWN. |
static TruthValue |
weakenTruthValue(TruthValue tv1,
TruthValue tv2)
If tv2 has lesser strength than tv1 , adapt the strength of tv1 (not
its value!) and return the result. |
Methods inherited from class edu.isi.stella.ContextSensitiveObject |
---|
homeModule |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Keyword polarity
public Keyword strength
public double positiveScore
Constructor Detail |
---|
public TruthValue()
Method Detail |
---|
public static TruthValue newTruthValue()
public static void printTruthValue(TruthValue self, OutputStream stream)
public static boolean inconsistentTruthValueP(TruthValue self)
self
represents INCONSISTENT.
self
-
public static boolean unknownTruthValueP(TruthValue self)
self
represents UNKNOWN.
self
-
public static boolean defaultTruthValueP(TruthValue self)
self
is a default truth value.
self
-
public static boolean strictTruthValueP(TruthValue self)
self
is a strict truth value.
self
-
public static boolean falseTruthValueP(TruthValue self)
self
represents some form of falsehood.
self
-
public static boolean trueTruthValueP(TruthValue self)
self
represents some form of truth.
self
-
public static TruthValue strengthenTruthValue(TruthValue tv1, TruthValue tv2)
tv2
has greater strength than tv1
, adapt the strength of tv1
(not
its value!) and return the result. Otherwise, return tv1
unmodified.
tv1
- tv2
-
public static TruthValue weakenTruthValue(TruthValue tv1, TruthValue tv2)
tv2
has lesser strength than tv1
, adapt the strength of tv1
(not
its value!) and return the result. Otherwise, return tv1
unmodified.
tv1
- tv2
-
public static TruthValue invertTruthValue(TruthValue self)
self
.
self
-
public static TruthValue disjoinTruthValues(TruthValue tv1, TruthValue tv2)
tv1
and tv2
.
tv1
- tv2
-
public static TruthValue conjoinTruthValues(TruthValue tv1, TruthValue tv2)
tv1
and tv2
.
tv1
- tv2
-
public static Stella_Object accessTruthValueSlotValue(TruthValue self, Symbol slotname, Stella_Object value, boolean setvalueP)
public Surrogate primaryType()
Stella_Object
self
.
Gets defined automatically for every non-abstract subclass of OBJECT.
primaryType
in class LogicObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |