|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.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 boolean |
knownTruthValueP(TruthValue self)
Return TRUE if self is a known truth value, that is
either TRUE or FALSE, but not UNKNOWN, INCONSISTENT, etc. |
static TruthValue |
mergeTruthValues(TruthValue tv1,
TruthValue tv2)
Merge two truth values that are describing the "same" logical proposition. |
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 |
strongerTruthValueP(TruthValue tv1,
TruthValue tv2)
Compare the two truth values and return true if tv1 is strictly
stronger than tv2. |
static boolean |
trueTruthValueP(TruthValue self)
Return TRUE if self represents some form of truth. |
static java.lang.String |
truthValueToString(TruthValue self,
boolean abbreviateP)
|
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 java.lang.String truthValueToString(TruthValue self,
boolean abbreviateP)
public static boolean inconsistentTruthValueP(TruthValue self)
self represents INCONSISTENT.
self -
public static boolean knownTruthValueP(TruthValue self)
self is a known truth value, that is
either TRUE or FALSE, but not UNKNOWN, INCONSISTENT, etc.
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 mergeTruthValues(TruthValue tv1,
TruthValue tv2)
In particular, this can be used to check for negated values by asking for the truth of a proposition and its negation, inverting the negation and then using merge to come up with an answer.
tv1 - tv2 -
public static boolean strongerTruthValueP(TruthValue tv1,
TruthValue tv2)
true if tv1 is strictly
stronger than tv2. Stronger uses the following partial order:
INCONSISTENT > STRICT > DEFAULT > UNKNOWN.
Truth values at the same level are equal in strength.
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_Objectself.
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 | ||||||||