
jason.asSyntax.ListTerm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jason Show documentation
Show all versions of jason Show documentation
Jason is a fully-fledged interpreter for an extended version of AgentSpeak, a BDI agent-oriented logic programming language.
package jason.asSyntax;
import java.util.Iterator;
import java.util.List;
/**
* The interface for lists of the AgentSpeak language
*
* @opt nodefillcolor lightgoldenrodyellow
*
* @author Jomi
*/
public interface ListTerm extends java.util.List, Term {
public void setTerm(Term t);
public Term getTerm();
public void setNext(Term l);
public ListTerm getNext();
public boolean isEnd();
public boolean isTail();
public VarTerm getTail();
public void setTail(VarTerm v);
public ListTerm getLast();
public ListTerm getPenultimate();
public Term removeLast();
public ListTerm append(Term t);
public ListTerm insert(Term t);
public ListTerm concat(ListTerm lt);
public ListTerm reverse();
public ListTerm union(ListTerm lt);
public ListTerm intersection(ListTerm lt);
public ListTerm difference(ListTerm lt);
/** returns all subsets that take k elements of this list */
public Iterator> subSets(int k);
public Iterator listTermIterator();
public List getAsList();
/** clone the list term */
public ListTerm cloneLT();
/** make a shallow copy of the list (terms are not cloned, only the structure) */
public ListTerm cloneLTShallow();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy