- java.lang.Object
-
- org.logicng.solvers.datastructures.LNGBoundedIntQueue
-
public final class LNGBoundedIntQueue extends Object
A bounded integer queue (for Glucose)- Since:
- 1.0
- Version:
- 1.3
-
-
Constructor Summary
Constructors Constructor Description LNGBoundedIntQueue()Constructs a new bounded int queue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavg()Returns the average value of this queue.voidinitSize(int size)Initializes the size of this queue.voidpush(int x)Pushes a new element to the queue.StringtoString()
-
-
-
Method Detail
-
initSize
public void initSize(int size)
Initializes the size of this queue.- Parameters:
size- the size
-
push
public void push(int x)
Pushes a new element to the queue.- Parameters:
x- the new element
-
avg
public int avg()
Returns the average value of this queue.- Returns:
- the average value of this queue
-
-