|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jason.asSemantics.Intention
public class Intention
Represents and Intention (a stack of IntendedMeans). The comparable sorts the intentions based on the atomic property: atomic intentions comes first.
Field Summary | |
---|---|
static Intention |
EmptyInt
|
Constructor Summary | |
---|---|
Intention()
|
Method Summary | |
---|---|
Intention |
clone()
|
int |
compareTo(Intention o)
implements atomic intentions > not atomic intentions |
boolean |
dropGoal(Trigger te,
Unifier un)
remove all IMs until the IM with trigger te |
boolean |
equals(java.lang.Object o)
|
IntendedMeans |
get(int index)
|
org.w3c.dom.Element |
getAsDOM(org.w3c.dom.Document document)
get as XML |
Term |
getAsTerm()
|
int |
getId()
|
IntendedMeans |
getIM(Trigger g,
Unifier u)
returns the IntendedMeans with TE = g, returns null if there isn't one |
java.util.Stack<IntendedMeans> |
getIMs()
|
int |
hashCode()
|
boolean |
hasTrigger(Trigger g,
Unifier u)
returns true if the intention has an IM where TE = g, using u to verify equality |
boolean |
isAtomic()
|
boolean |
isFinished()
|
boolean |
isSuspended()
|
java.util.ListIterator<IntendedMeans> |
iterator()
|
IntendedMeans |
peek()
|
IntendedMeans |
pop()
|
void |
push(IntendedMeans im)
|
void |
setAtomic(int a)
|
void |
setSuspended(boolean b)
|
int |
size()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Intention EmptyInt
Constructor Detail |
---|
public Intention()
Method Detail |
---|
public int getId()
public void push(IntendedMeans im)
public IntendedMeans peek()
public IntendedMeans get(int index)
public IntendedMeans pop()
public boolean isAtomic()
public void setAtomic(int a)
public java.util.ListIterator<IntendedMeans> iterator()
public boolean isFinished()
public int size()
public void setSuspended(boolean b)
public boolean isSuspended()
public java.util.Stack<IntendedMeans> getIMs()
public IntendedMeans getIM(Trigger g, Unifier u)
public boolean hasTrigger(Trigger g, Unifier u)
public boolean dropGoal(Trigger te, Unifier un)
public int compareTo(Intention o)
compareTo
in interface java.lang.Comparable<Intention>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Intention clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Term getAsTerm()
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |