nars.language
Class Inheritance
java.lang.Object
nars.language.Term
nars.language.CompoundTerm
nars.language.Statement
nars.language.Inheritance
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable<Term>
public class Inheritance
- extends Statement
A Statement about an Inheritance relation.
Fields inherited from class nars.language.Term |
name |
Constructor Summary |
private |
Inheritance(java.lang.String n,
java.util.ArrayList<Term> arg)
Constructor with partial values, called by make |
private |
Inheritance(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 an object |
static Inheritance |
make(Term subject,
Term predicate)
Try to make a new compound from two components. |
java.lang.String |
operator()
Get the operator of the term. |
Methods inherited from class nars.language.Statement |
getPredicate, getSubject, invalid, invalidStatement, isRelation, make, make, make, makeName, makeStatementName, makeSym |
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 java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Inheritance
private Inheritance(java.lang.String n,
java.util.ArrayList<Term> arg)
- Constructor with partial values, called by make
- Parameters:
n
- The name of the termarg
- The component list of the term
Inheritance
private Inheritance(java.lang.String n,
java.util.ArrayList<Term> cs,
java.util.ArrayList<Variable> open,
short i)
- Constructor with full values, called by clone
- Parameters:
n
- The name of the termcs
- Component listopen
- Open variable listi
- Syntactic complexity of the compound
clone
public java.lang.Object clone()
- Clone an object
- Specified by:
clone
in class CompoundTerm
- Returns:
- A new object, to be casted into a SetExt
make
public static Inheritance make(Term subject,
Term predicate)
- Try to make a new compound from two components. Called by the inference rules.
- Parameters:
subject
- The first compomentpredicate
- The second compoment
- Returns:
- A compound generated or null
operator
public java.lang.String operator()
- Get the operator of the term.
- Specified by:
operator
in class CompoundTerm
- Returns:
- the operator of the term