|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnars.language.Term
nars.language.CompoundTerm
nars.language.Conjunction
public class Conjunction
Conjunction of statements
| Field Summary | |
|---|---|
private TemporalValue |
temporalOrder
Temporal order between the components |
| Fields inherited from class nars.language.CompoundTerm |
|---|
complexity, components, openVariables |
| Fields inherited from class nars.language.Term |
|---|
name |
| Constructor Summary | |
|---|---|
protected |
Conjunction(java.lang.String n,
java.util.ArrayList<Term> cs,
java.util.ArrayList<Variable> open,
short i,
TemporalValue order)
Constructor with full values, called by clone |
protected |
Conjunction(java.lang.String n,
java.util.ArrayList<Term> arg,
TemporalValue order)
Constructor with partial values, called by make |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone an object |
static java.lang.String |
getConjunctionSymbol(TemporalValue t)
COnvert a temporal into its String representation |
TemporalValue |
getOrder()
Return the temporal order. |
boolean |
isCommutative()
Check if the compound is communitative. |
static boolean |
isParallel(Term t)
Whether the Term is a parallel conjunction |
static boolean |
isSequence(Term t)
Whether the Term is a sequential conjunction |
static Term |
make(java.util.ArrayList<Term> argList,
TemporalValue order)
Try to make a new compound from a list of components. |
static Term |
make(Term term1,
Term term2,
TemporalValue order)
Try to make a new compound from two components. |
static Term |
make(java.util.TreeSet<Term> set,
TemporalValue order)
Try to make a new compound from a set of components. |
java.lang.String |
operator()
Get the operator of the term. |
| Methods inherited from class nars.language.CompoundTerm |
|---|
addComponents, argumentsToList, cloneComponents, cloneList, componentAt, containAllComponents, containComponent, getComplexity, getComponents, getConstantName, getOpenVariables, isConstant, isOperator, make, make, makeCompoundName, makeImageName, makeName, makeSetName, prepareComponentLinks, reduceComponents, renameVariables, renameVariables, replaceComponent, replaceComponent, size, substituteComponent |
| Methods inherited from class nars.language.Term |
|---|
compareTo, equals, getName, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private TemporalValue temporalOrder
| Constructor Detail |
|---|
protected Conjunction(java.lang.String n,
java.util.ArrayList<Term> arg,
TemporalValue order)
n - The name of the termarg - The component list of the termorder - The temporal order of the components
protected Conjunction(java.lang.String n,
java.util.ArrayList<Term> cs,
java.util.ArrayList<Variable> open,
short i,
TemporalValue order)
n - The name of the termcs - Component listopen - Open variable listi - Syntactic complexity of the compoundorder - The temporal order of the components| Method Detail |
|---|
public java.lang.Object clone()
clone in class CompoundTermpublic java.lang.String operator()
operator in class CompoundTermpublic static java.lang.String getConjunctionSymbol(TemporalValue t)
t - The given temporal value
public boolean isCommutative()
isCommutative in class CompoundTermpublic TemporalValue getOrder()
getOrder in class Termpublic static boolean isParallel(Term t)
t - A given term
public static boolean isSequence(Term t)
t - A given term
public static Term make(java.util.ArrayList<Term> argList,
TemporalValue order)
argList - the list of argumentsorder - The temporal order of the components
public static Term make(java.util.TreeSet<Term> set,
TemporalValue order)
set - a set of Term as compomentsorder - The temporal order of the components
public static Term make(Term term1,
Term term2,
TemporalValue order)
term1 - The first compomentterm2 - The second compomentorder - The temporal order of the components
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||