Serializable, Cloneable, Comparable<AbstractTerm>, Iterable<Term>, AbstractTermpublic class Equivalence extends Statement
CompoundTerm.ConvRectangle, CompoundTerm.UnableToCloneExceptionStatement.EnumStatementSideTerm.TermVisitor| Modifier and Type | Field | Description |
|---|---|---|
private int |
temporalOrder |
complexity, conceptival, containedTemporalRelations, hash, termEmptyTermArray, imagination, index_variable, SELF, SEQ_SPATIAL, SEQ_TEMPORAL, term_indices| Modifier | Constructor | Description |
|---|---|---|
private |
Equivalence(Term[] components,
int order) |
Constructor with partial values, called by make
|
| Modifier and Type | Method | Description |
|---|---|---|
Equivalence |
clone() |
Clone an object
|
Equivalence |
clone(Term[] t) |
Must be Term return type because the type of Term may change with different arguments
|
int |
getTemporalOrder() |
|
boolean |
isCommutative() |
Check if the compound is commutative.
|
static Equivalence |
make(Term subject,
Term predicate) |
Try to make a new compound from two term.
|
static Equivalence |
make(Term subject,
Term predicate,
int temporalOrder) |
|
static Term |
makeTerm(Term subject,
Term predicate,
int temporalOrder) |
alternate version of Inheritance.make that allows equivalent subject and predicate
to be reduced to the common term.
|
Symbols.NativeOperator |
operator() |
Get the operator of the 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, invalidateName, isNormalized, iterator, makeCompoundName, name, prepareComponentLinks, replaceIntervals, setComponent, setNormalized, shuffle, size, termArray, termList, transformIndependentVariableToDependent, UpdateConvRectangleforEach, spliteratorfinalize, getClass, notify, notifyAll, wait, wait, waitgetPredicate, getSubject, init, invalid, invalidPair, invalidStatement, invalidStatement, make, make, make, make, makeName, makeStatementName, makeSym, retBySide, retOppositeSideget, get, getIsSpatial, hasVar, isConstant, isExecutable, isHigherOrderStatement, isSelf, nameInternal, recurseSubtermsContainingVariables, recurseSubtermsContainingVariables, recurseTerms, setName, subjectOrPredicateIsIndependentVar, text, toSortedSet, toSortedSetArray, toString, validprivate Equivalence(Term[] components, int order)
components - The component list of the termpublic Equivalence clone()
public Equivalence clone(Term[] t)
CompoundTermclone in class CompoundTermpublic static Term makeTerm(Term subject, Term predicate, int temporalOrder)
public static Equivalence make(Term subject, Term predicate)
subject - The first componentpredicate - The second componentpublic static Equivalence make(Term subject, Term predicate, int temporalOrder)
public Symbols.NativeOperator operator()
operator in class CompoundTermpublic boolean isCommutative()
isCommutative in class CompoundTermpublic int getTemporalOrder()
getTemporalOrder in class TermCopyright © 2020 OpenNARS. All rights reserved.