|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.liacs.subdisc.CandidateQueue
public class CandidateQueue
A CandidateQueue holds a collection of Candidate
s for
future processing. These are ordered as dictated by Candidate's
compareTo(Candidate)
method.
This class is thread save.
Candidate
Constructor Summary | |
---|---|
CandidateQueue(SearchParameters theSearchParameters,
Candidate theRootCandidate)
|
Method Summary | |
---|---|
boolean |
add(Candidate theCandidate)
Adds a Candidate to this CandidateQueue. |
int |
currentLevelQueueSize()
Returns the number of Candidate s in the current
queue level of this CandidateQueue. |
Candidate |
removeFirst()
Retrieves first Candidate from this CandidateQueue,
and moves to next level if required. |
int |
size()
Returns the total number of Candidate s in this
CandidateQueue. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CandidateQueue(SearchParameters theSearchParameters, Candidate theRootCandidate)
Method Detail |
---|
public boolean add(Candidate theCandidate)
Candidate
to this CandidateQueue.
The add() and removeFirst() methods are thread save.
theCandidate
- the Candidate to add.
true
if Candidate is added, false
otherwise.removeFirst()
,
Candidate
public Candidate removeFirst()
Candidate
from this CandidateQueue,
and moves to next level if required.
The add() and removeFirst() methods are thread save.
add(Candidate)
,
Candidate
public int size()
Candidate
s in this
CandidateQueue.
Thread save with respect to add() and removeFirst().
add(Candidate)
,
removeFirst()
,
Candidate
public int currentLevelQueueSize()
Candidate
s in the current
queue level of this CandidateQueue.
Thread save with respect to add() and removeFirst().
add(Candidate)
,
removeFirst()
,
Candidate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |