|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnars.entity.TemporalValue
public class TemporalValue
Temporal information, in terms of the internal clock of the system. In an Implication or Equivalence, the value indicates the interval from the first event to the second. In a Conjunction, the value can only be 0 (parallel) or 1 (suquential). In a Sentence, the value indicates the interval from when the sentence is created to when the event happens.
| Field Summary | |
|---|---|
private int |
delta
|
| Constructor Summary | |
|---|---|
TemporalValue(int t)
Constructor, with a given number |
|
TemporalValue(java.lang.String s)
Constructor, with a String representation |
|
| Method Summary | |
|---|---|
static boolean |
closer(TemporalValue t1,
TemporalValue t2,
TemporalValue t)
Check if the first temporal valie is closer to the given time than the second |
static boolean |
equal(TemporalValue t1,
TemporalValue t2)
Check if two temporal values have the same content |
int |
getDelta()
Directly report the time difference |
static TemporalValue |
getReverse(TemporalValue t)
Get the reverse temporal difference of a given one |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int delta
| Constructor Detail |
|---|
public TemporalValue(int t)
t - The temporal difference of the itempublic TemporalValue(java.lang.String s)
s - The temporal difference of the item as a String| Method Detail |
|---|
public int getDelta()
public static TemporalValue getReverse(TemporalValue t)
t - The given temporal value
public static boolean equal(TemporalValue t1,
TemporalValue t2)
t1 - The first temporal valuet2 - The second temporal value
public static boolean closer(TemporalValue t1,
TemporalValue t2,
TemporalValue t)
t1 - The first temporal valuet2 - The second temporal valuet - The target temporal value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||