Serializable
, Cloneable
, Comparable<AbstractTerm>
, Iterable<Term>
, AbstractTerm
public abstract class Image extends CompoundTerm
CompoundTerm.ConvRectangle, CompoundTerm.UnableToCloneException
Term.TermVisitor
Modifier and Type | Field | Description |
---|---|---|
short |
relationIndex |
The index of relation in the component list
|
complexity, conceptival, containedTemporalRelations, hash, term
EmptyTermArray, imagination, index_variable, SELF, SEQ_SPATIAL, SEQ_TEMPORAL, term_indices
Modifier | Constructor | Description |
---|---|---|
protected |
Image(Term[] components,
short relationIndex) |
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(AbstractTerm that) |
|
Term |
getRelation() |
Get the relation term in the Image
|
Term |
getTheOtherComponent() |
Get the other term in the Image
|
protected void |
init(Term[] components) |
call this after changing Term[] contents
|
static boolean |
isPlaceHolder(Term t) |
|
protected static String |
makeImageName(Symbols.NativeOperator op,
Term[] arg,
int relationIndex) |
default method to make the oldName of an image term from given fields
|
CharSequence |
makeName() |
Get the other term in the Image
|
addComponentsRecursively, addTermsTo, applySubstitute, applySubstituteToCompound, asTermList, clone, clone, cloneDeep, cloneDeepVariables, cloneTerms, cloneTermsAppend, cloneTermsDeep, cloneTermsExcept, cloneTermsListDeep, cloneTermsReplacing, cloneVariableTermsDeep, containedTemporalRelations, containsAllTermsOf, containsTerm, containsTermRecursively, countTermRecursively, equals, extractIntervals, getComplexity, getContainedTerms, hashCode, hasInterval, hasVar, hasVarDep, hasVarIndep, hasVarQuery, invalidateName, isCommutative, isNormalized, iterator, makeCompoundName, name, operator, prepareComponentLinks, replaceIntervals, setComponent, setNormalized, shuffle, size, termArray, termList, transformIndependentVariableToDependent, UpdateConvRectangle
forEach, spliterator
finalize, getClass, notify, notifyAll, wait, wait, wait
get, get, getIsSpatial, getTemporalOrder, hasVar, isConstant, isExecutable, isHigherOrderStatement, isSelf, nameInternal, recurseSubtermsContainingVariables, recurseSubtermsContainingVariables, recurseTerms, setName, subjectOrPredicateIsIndependentVar, text, toSortedSet, toSortedSetArray, toString, valid
public final short relationIndex
protected Image(Term[] components, short relationIndex)
protected void init(Term[] components)
CompoundTerm
init
in class CompoundTerm
public int compareTo(AbstractTerm that)
compareTo
in interface Comparable<AbstractTerm>
compareTo
in class CompoundTerm
that
- The Term to be compared with the current Termpublic static boolean isPlaceHolder(Term t)
protected static String makeImageName(Symbols.NativeOperator op, Term[] arg, int relationIndex)
op
- the term operatorarg
- the list of termrelationIndex
- the location of the place holderpublic CharSequence makeName()
makeName
in class CompoundTerm
public Term getRelation()
public Term getTheOtherComponent()
Copyright © 2020 OpenNARS. All rights reserved.