|
||||||||||
| 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.Product
public class Product
A Product is a sequence of terms.
| Field Summary |
|---|
| Fields inherited from class nars.language.CompoundTerm |
|---|
complexity, components, openVariables |
| Fields inherited from class nars.language.Term |
|---|
name |
| Constructor Summary | |
|---|---|
private |
Product(java.lang.String n,
java.util.ArrayList<Term> arg)
Constructor with partial values, called by make |
private |
Product(java.lang.String n,
java.util.ArrayList<Term> cs,
java.util.ArrayList<Variable> open,
short complexity)
Constructor with full values, called by clone |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone a Product |
static Term |
make(java.util.ArrayList<Term> argument)
Try to make a new compound. |
static Term |
make(CompoundTerm image,
Term component,
int index)
Try to make a Product from an ImageExt/ImageInt and a component. |
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, makeName, 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 |
| Constructor Detail |
|---|
private Product(java.lang.String n,
java.util.ArrayList<Term> arg)
n - The name of the termarg - The component list of the term
private Product(java.lang.String n,
java.util.ArrayList<Term> cs,
java.util.ArrayList<Variable> open,
short complexity)
n - The name of the termcs - Component listopen - Open variable listcomplexity - Syntactic complexity of the compound| Method Detail |
|---|
public java.lang.Object clone()
clone in class CompoundTermpublic static Term make(java.util.ArrayList<Term> argument)
argument - The list of components
public static Term make(CompoundTerm image,
Term component,
int index)
image - The existing Imagecomponent - The component to be added into the component listindex - The index of the place-holder in the new Image -- optional parameter
public java.lang.String operator()
operator in class CompoundTerm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||