|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hops.dm.tad.queuepair
public class queuepair
queue of nimPair
Constructor Summary | |
---|---|
queuepair()
Creates a new instance of stackpair |
|
queuepair(queueact queuesrc,
turn DP)
Creates a new instance of stackpair and copy the input queueact and sets the DP |
Method Summary | |
---|---|
void |
add(queueact queuesrc,
turn DP)
push all the elements of the queue in the same order of this queue |
void |
cancel_shift()
abort shift count |
void |
clear()
remove all the elements of the queue |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
contains(action act)
Tests if the queue contains an element with the specified action, independently of the turn |
boolean |
contains(actionset actid)
Tests if an object with the specified actionset is a component of this queue |
boolean |
contains(actionset actid,
condition attr)
Test if the queue contains ALL the element with the specified actionset and attribute name of the condition |
boolean |
contains(actionset actid,
java.lang.String attr)
Test if the queue contains an element with the specified actionset and attribute name |
boolean |
contains(actionset actid,
turn DP)
Test if the queue contains an element with the specified actionset and turn |
boolean |
contains(attrval_ext ext)
Test if the queue contains an element with the specified attribute extension |
boolean |
contains(nimPair _w)
Tests if the specified object is a component in this queue. |
boolean |
containsAll(queueact queuesrc)
Tests if the current queue contains at least all the elements of the specified queue |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
boolean |
equalsTo(queuepair _w)
Indicates whether a queuepair contains at least the same elements thab this one. |
nimPair |
first()
Looks at the object at the head of this stack without removing it from the queue. |
boolean |
fully_shifted()
all the elements of the queue has been head |
action |
get(actionset actid)
Returns the first element found with the specified actionset |
action |
get(actionset actid,
turn DP)
Returns the first element found with the specified actionset and turn |
nimPair |
get(int i)
Returns the element at the specified position in this queue. |
queueact |
getAll(actionset actid)
Returns all the actions in a queue that are of the specified actionset |
int |
hashCode()
|
void |
ini_shift()
initialized the shift count |
boolean |
is_empty()
Tests if there are any element in the queue |
nimPair |
pop()
Removes the object at the head of this queue and returns that object as the value of this function, or an empty value if the queue is empty. |
void |
push(nimPair _w)
Pushes an item onto the head of this queue. |
void |
remove(action act)
Remove the element from the queue that is equals to the specified action, independently of the turn |
void |
remove(nimPair _w)
remove the element from the queue |
int |
search(nimPair nim)
Searches the index for the specified object. |
void |
shift()
push the first element in the queue at the end |
int |
size()
Returns the number of components in this queue. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public queuepair()
public queuepair(queueact queuesrc, turn DP)
Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equalsTo(queuepair _w)
public boolean is_empty()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void add(queueact queuesrc, turn DP)
public nimPair first()
public void push(nimPair _w)
public nimPair pop()
public void clear()
public void remove(nimPair _w)
public void remove(action act)
public boolean contains(nimPair _w)
public boolean contains(actionset actid)
public boolean contains(action act)
public boolean contains(actionset actid, turn DP)
public boolean contains(attrval_ext ext)
public boolean contains(actionset actid, java.lang.String attr)
public boolean contains(actionset actid, condition attr)
public action get(actionset actid)
public action get(actionset actid, turn DP)
public nimPair get(int i)
public boolean containsAll(queueact queuesrc)
public queueact getAll(actionset actid)
public void ini_shift()
public boolean fully_shifted()
public void shift()
public void cancel_shift()
public int size()
public int search(nimPair nim)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |