Serializable
, Cloneable
, Comparable<AbstractTerm>
, Iterable<Term>
, AbstractTerm
public class Conjunction extends CompoundTerm
CompoundTerm.ConvRectangle, CompoundTerm.UnableToCloneException
Term.TermVisitor
Modifier and Type | Field | Description |
---|---|---|
boolean |
isSpatial |
|
int |
temporalOrder |
complexity, conceptival, containedTemporalRelations, hash, term
EmptyTermArray, imagination, index_variable, SELF, SEQ_SPATIAL, SEQ_TEMPORAL, term_indices
Modifier | Constructor | Description |
---|---|---|
protected |
Conjunction(Term[] arg,
int order,
boolean normalized,
boolean spatial) |
|
protected |
Conjunction(Term[] arg,
int order,
boolean normalized,
boolean spatial,
CompoundTerm.ConvRectangle rect) |
Constructor with partial values, called by make
|
Modifier and Type | Method | Description |
---|---|---|
Conjunction |
clone() |
Clone an object
|
Term |
clone(Term[] t) |
Must be Term return type because the type of Term may change with different arguments
|
static Term[] |
flatten(Term[] args,
int order,
boolean isSpatial) |
|
boolean |
getIsSpatial() |
|
int |
getTemporalOrder() |
|
boolean |
isCommutative() |
Check if the compound is commutative.
|
static boolean |
isConjunctionAndHasSameOrder(Term t,
int order) |
|
private static Term |
make(Collection<Term> set,
int temporalOrder,
boolean spatial) |
|
static Term |
make(Term[] argList) |
Try to make a new compound from a list of term.
|
static Term |
make(Term[] argList,
int temporalOrder) |
Try to make a new compound from a list of term.
|
static Term |
make(Term[] argList,
int temporalOrder,
boolean spatial) |
|
static Term |
make(Term prefix,
Interval suffix,
int temporalOrder) |
|
static Term |
make(Term prefix,
Interval ival,
Term suffix,
int temporalOrder) |
|
static Term |
make(Term term1,
Term term2) |
Try to make a new compound from two term.
|
static Term |
make(Term term1,
Term term2,
int temporalOrder) |
|
static Term |
make(Term term1,
Term term2,
int temporalOrder,
boolean spatial) |
|
protected CharSequence |
makeName() |
default method to make the oldName of the current term from existing
fields.
|
Symbols.NativeOperator |
operator() |
Get the operator of the term.
|
static String |
PositiveIntString(int value) |
|
static Term[] |
simplifyIntervals(Term[] components) |
|
static Term |
UpdateRelativeIndices(int minX,
int minY,
int minsX,
int minsY,
Term term) |
addComponentsRecursively, addTermsTo, applySubstitute, applySubstituteToCompound, asTermList, cloneDeep, cloneDeepVariables, cloneTerms, cloneTermsAppend, cloneTermsDeep, cloneTermsExcept, cloneTermsListDeep, cloneTermsReplacing, cloneVariableTermsDeep, compareTo, containedTemporalRelations, containsAllTermsOf, containsTerm, containsTermRecursively, countTermRecursively, equals, extractIntervals, getComplexity, getContainedTerms, hashCode, hasInterval, hasVar, hasVarDep, hasVarIndep, hasVarQuery, init, invalidateName, isNormalized, iterator, makeCompoundName, name, prepareComponentLinks, replaceIntervals, setComponent, setNormalized, shuffle, size, termArray, termList, transformIndependentVariableToDependent, UpdateConvRectangle
forEach, spliterator
finalize, getClass, notify, notifyAll, wait, wait, wait
get, get, hasVar, isConstant, isExecutable, isHigherOrderStatement, isSelf, nameInternal, recurseSubtermsContainingVariables, recurseSubtermsContainingVariables, recurseTerms, setName, subjectOrPredicateIsIndependentVar, text, toSortedSet, toSortedSetArray, toString, valid
protected Conjunction(Term[] arg, int order, boolean normalized, boolean spatial, CompoundTerm.ConvRectangle rect)
arg
- The component list of the termorder
- normalized
- protected Conjunction(Term[] arg, int order, boolean normalized, boolean spatial)
public Term clone(Term[] t)
CompoundTerm
clone
in class CompoundTerm
public Conjunction clone()
clone
in class CompoundTerm
public Symbols.NativeOperator operator()
operator
in class CompoundTerm
public boolean isCommutative()
isCommutative
in class CompoundTerm
public static final Term make(Term[] argList)
argList
- the list of argumentspublic static boolean isConjunctionAndHasSameOrder(Term t, int order)
public static String PositiveIntString(int value)
public static Term UpdateRelativeIndices(int minX, int minY, int minsX, int minsY, Term term)
public static Term[] simplifyIntervals(Term[] components)
components
- The componentspublic static final Term make(Term[] argList, int temporalOrder)
temporalOrder
- The temporal order among termargList
- the list of argumentsprivate static final Term make(Collection<Term> set, int temporalOrder, boolean spatial)
set
- a set of Term as termprotected CharSequence makeName()
CompoundTerm
makeName
in class CompoundTerm
public static final Term make(Term term1, Term term2)
term1
- The first componentterm2
- The second componentpublic int getTemporalOrder()
getTemporalOrder
in class Term
public boolean getIsSpatial()
getIsSpatial
in class Term
Copyright © 2020 OpenNARS. All rights reserved.