|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueueElement
Created by IntelliJ IDEA. User: pereira Date: Jun 18, 2005 Time: 7:31:08 PM Queue elements have a priority, and a queue position. Lower-priority elements are closer to the front of the queue. The queue position is set by the queue implementation, and should not be changed outside the queue implementation.
Method Summary | |
---|---|
int |
getPosition()
Get the queue position of this element. |
double |
getPriority()
Get this element's priority. |
void |
setPosition(int pos)
Set the current queue position for this element. |
void |
setPriority(double priority)
Set the priority of this element. |
Method Detail |
---|
double getPriority()
void setPriority(double priority)
priority
- the element's new priorityint getPosition()
void setPosition(int pos)
pos
- the new position for the element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |