|
||||||||||
| 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.SetInt
public class SetInt
An intensionally defined set, which contains one or more instances defining the Term.
| Field Summary |
|---|
| Fields inherited from class nars.language.CompoundTerm |
|---|
complexity, components, openVariables |
| Fields inherited from class nars.language.Term |
|---|
name |
| Constructor Summary | |
|---|---|
private |
SetInt(java.lang.String n,
java.util.ArrayList<Term> arg)
Constructor with partial values, called by make |
private |
SetInt(java.lang.String n,
java.util.ArrayList<Term> cs,
java.util.ArrayList<Variable> open,
short i)
constructor with full values, called by clone |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone a SetInt |
boolean |
isCommutative()
Check if the compound is communitative. |
static Term |
make(java.util.ArrayList<Term> argList)
Try to make a new SetExt. |
static Term |
make(Term t)
Try to make a new set from one component. |
static Term |
make(java.util.TreeSet<Term> set)
Try to make a new compound from a set of components. |
java.lang.String |
makeName()
Make a String representation of the set, override the default. |
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, 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 |
| Constructor Detail |
|---|
private SetInt(java.lang.String n,
java.util.ArrayList<Term> arg)
n - The name of the termarg - The component list of the term
private SetInt(java.lang.String n,
java.util.ArrayList<Term> cs,
java.util.ArrayList<Variable> open,
short i)
n - The name of the termcs - Component listopen - Open variable listi - Syntactic complexity of the compound| Method Detail |
|---|
public java.lang.Object clone()
clone in class CompoundTermpublic static Term make(Term t)
t - The compoment
public static Term make(java.util.ArrayList<Term> argList)
argList - The list of components
public static Term make(java.util.TreeSet<Term> set)
set - a set of Term as compoments
public java.lang.String operator()
operator in class CompoundTermpublic boolean isCommutative()
isCommutative in class CompoundTermpublic java.lang.String makeName()
makeName in class CompoundTerm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||