Serializable
, Cloneable
, Comparable<AbstractTerm>
, Iterable<Term>
, AbstractTerm
public class Equivalence extends Statement
CompoundTerm.ConvRectangle, CompoundTerm.UnableToCloneException
Statement.EnumStatementSide
Term.TermVisitor
Modifier and Type | Field | Description |
---|---|---|
private int |
temporalOrder |
complexity, conceptival, containedTemporalRelations, hash, term
EmptyTermArray, 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, UpdateConvRectangle
forEach, spliterator
finalize, getClass, notify, notifyAll, wait, wait, wait
getPredicate, getSubject, init, invalid, invalidPair, invalidStatement, invalidStatement, make, make, make, make, makeName, makeStatementName, makeSym, retBySide, retOppositeSide
get, get, getIsSpatial, hasVar, isConstant, isExecutable, isHigherOrderStatement, isSelf, nameInternal, recurseSubtermsContainingVariables, recurseSubtermsContainingVariables, recurseTerms, setName, subjectOrPredicateIsIndependentVar, text, toSortedSet, toSortedSetArray, toString, valid
private Equivalence(Term[] components, int order)
components
- The component list of the termpublic Equivalence clone()
public Equivalence clone(Term[] t)
CompoundTerm
clone
in class CompoundTerm
public 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 CompoundTerm
public boolean isCommutative()
isCommutative
in class CompoundTerm
public int getTemporalOrder()
getTemporalOrder
in class Term
Copyright © 2020 OpenNARS. All rights reserved.