public final class RingBuffer extends Object
Title: Tile Cache Monitoring Tool
Description: Monitors and displays JAI Tile Cache activity.
Copyright: Copyright (c) 2002, 2010
All Rights Reserved
Company: Virtual Visions Software, Inc.
| Modifier and Type | Field and Description |
|---|---|
private float[] |
array |
private int |
count |
private boolean |
filled |
private int |
size |
private int |
start |
private int |
write_pointer |
| Constructor and Description |
|---|
RingBuffer(int size)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Returns the current number of entries in the ring buffer,
up to the ring buffer size.
|
int |
getSize()
Returns the ring buffer size.
|
float |
read(int i)
Read a data point value from the ring buffer.
|
void |
setSize(int new_size)
Changes the ring buffer array dimension
|
void |
write(float data)
Write a data point into the ring buffer
|
private int size
private int start
private int count
private int write_pointer
private boolean filled
private float[] array
public RingBuffer(int size)
size - ring buffer array dimensionpublic void setSize(int new_size)
new_size - The new ring buffer dimensionIllegalArgumentException - if new_size .lt. 2public int getCount()
public int getSize()
public void write(float data)
data - Floating point value of JVM memory usage.public float read(int i)
i - Data index offset from the starting index.Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.