public class NQueue
extends java.lang.Object
Constructor and Description |
---|
NQueue()
Buider.Builts a empty queue.
|
Modifier and Type | Method and Description |
---|---|
keel.Algorithms.Lazy_Learning.IDIBL.Neighbour |
get(int position)
Get a neighbor
|
int |
getSize()
Get actual size of the queue
|
void |
insert(keel.Algorithms.Lazy_Learning.IDIBL.Neighbour item)
Insert a new neighbor
|
static void |
setMAX_SIZE(int max_size)
Sets maximun size of the queue
|
public static void setMAX_SIZE(int max_size)
max_size
- Maximun sizepublic keel.Algorithms.Lazy_Learning.IDIBL.Neighbour get(int position)
position
- Position of the neighborpublic void insert(keel.Algorithms.Lazy_Learning.IDIBL.Neighbour item)
item
- Neighbor to be insertedpublic int getSize()