Serializable
, Cloneable
, Comparable<AbstractTerm>
, Iterable<Term>
, AbstractTerm
public class Similarity extends Statement
CompoundTerm.ConvRectangle, CompoundTerm.UnableToCloneException
Statement.EnumStatementSide
Term.TermVisitor
complexity, conceptival, containedTemporalRelations, hash, term
EmptyTermArray, imagination, index_variable, SELF, SEQ_SPATIAL, SEQ_TEMPORAL, term_indices
Constructor | Description |
---|---|
Similarity(Term[] arg) |
Constructor with partial values, called by make
|
Similarity(Term subj,
Term pred) |
Modifier and Type | Method | Description |
---|---|---|
Similarity |
clone() |
Clone an object
|
Similarity |
clone(Term[] replaced) |
Must be Term return type because the type of Term may change with different arguments
|
boolean |
isCommutative() |
Check if the compound is commutative.
|
static Similarity |
make(Term subject,
Term predicate) |
Try to make a new compound from two term.
|
static Term |
makeTerm(Term subject,
Term predicate) |
alternate version of 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, getTemporalOrder, hasVar, isConstant, isExecutable, isHigherOrderStatement, isSelf, nameInternal, recurseSubtermsContainingVariables, recurseSubtermsContainingVariables, recurseTerms, setName, subjectOrPredicateIsIndependentVar, text, toSortedSet, toSortedSetArray, toString, valid
public Similarity(Term[] arg)
arg
- The component list of the termpublic Similarity clone()
public Similarity clone(Term[] replaced)
CompoundTerm
clone
in class CompoundTerm
public static Term makeTerm(Term subject, Term predicate)
public static Similarity make(Term subject, Term predicate)
subject
- The first componentpredicate
- The second componentpublic Symbols.NativeOperator operator()
operator
in class CompoundTerm
public boolean isCommutative()
isCommutative
in class CompoundTerm
Copyright © 2020 OpenNARS. All rights reserved.