|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnars.language.Term
nars.language.CompoundTerm
nars.language.ImageInt
public class ImageInt
An intension image.
(\,P,A,_)) --> B iff P --> (*,A,B)
Internally, it is actually (\,A,P)_1, with an index.
| Field Summary | |
|---|---|
private short |
relationIndex
The index of relation in the component list |
| Fields inherited from class nars.language.CompoundTerm |
|---|
complexity, components, openVariables |
| Fields inherited from class nars.language.Term |
|---|
name |
| Constructor Summary | |
|---|---|
private |
ImageInt(java.lang.String n,
java.util.ArrayList<Term> cs,
java.util.ArrayList<Variable> open,
short complexity,
short index)
Constructor with full values, called by clone |
private |
ImageInt(java.lang.String n,
java.util.ArrayList<Term> arg,
short index)
constructor with partial values, called by make |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone an object |
short |
getRelationIndex()
get the index of the relation in the component list |
static Term |
make(java.util.ArrayList<Term> argList)
Try to make a new ImageExt. |
static Term |
make(java.util.ArrayList<Term> argument,
short index)
Try to make a new compound from a set of components. |
static Term |
make(ImageInt oldImage,
Term component,
short index)
Try to make an Image from an existing Image and a component. |
static Term |
make(Product product,
Term relation,
short index)
Try to make an Image from a Product and a relation. |
java.lang.String |
makeName()
Override the default in making the name of the current term from existing fields |
java.lang.String |
operator()
Get the operator of the term. |
| Methods inherited from class nars.language.CompoundTerm |
|---|
addComponents, argumentsToList, cloneComponents, cloneList, componentAt, containAllComponents, containComponent, getComplexity, getComponents, getConstantName, getOpenVariables, isCommutative, isConstant, isOperator, make, make, makeCompoundName, makeImageName, makeSetName, prepareComponentLinks, reduceComponents, renameVariables, renameVariables, replaceComponent, replaceComponent, size, substituteComponent |
| Methods inherited from class nars.language.Term |
|---|
compareTo, equals, getName, getOrder, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private short relationIndex
| Constructor Detail |
|---|
private ImageInt(java.lang.String n,
java.util.ArrayList<Term> arg,
short index)
n - The name of the termarg - The component list of the termindex - The index of relation in the component list
private ImageInt(java.lang.String n,
java.util.ArrayList<Term> cs,
java.util.ArrayList<Variable> open,
short complexity,
short index)
n - The name of the termcs - Component listopen - Open variable listcomplexity - Syntactic complexity of the compoundindex - The index of relation in the component list| Method Detail |
|---|
public java.lang.Object clone()
clone in class CompoundTermpublic static Term make(java.util.ArrayList<Term> argList)
argList - The list of components
public static Term make(Product product,
Term relation,
short index)
product - The productrelation - The relationindex - The index of the place-holder
public static Term make(ImageInt oldImage,
Term component,
short index)
oldImage - The existing Imagecomponent - The component to be added into the component listindex - The index of the place-holder in the new Image
public static Term make(java.util.ArrayList<Term> argument,
short index)
argument - The argument listindex - The index of the place-holder in the new Image
public short getRelationIndex()
public java.lang.String makeName()
makeName in class CompoundTermpublic java.lang.String operator()
operator in class CompoundTerm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||