org.joone.edit
Class SharedBuffer
- java.lang.Object
-
- org.joone.edit.SharedBuffer
-
public class SharedBuffer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description SharedBuffer()Creates new SharedBuffer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[][]get()Returns the buffer and empty it.ChartingHandlegetHandle()Getter for property handle.double[][]getNoWait()Returns the buffer and empty it.voidput(double value, double cycle)Placees a pair of double in the next free place in the buffer.voidsetHandle(ChartingHandle handle)Setter for property handle.
-
-
-
Method Detail
-
get
public double[][] get()
Returns the buffer and empty it. The calling Thread falls in a wait state if the buffer is empty
-
getNoWait
public double[][] getNoWait()
Returns the buffer and empty it. The calling Thread doesn't fall in a wait state if the buffer is empty, but simply returns a null value.
-
put
public void put(double value, double cycle)Placees a pair of double in the next free place in the buffer.
-
getHandle
public ChartingHandle getHandle()
Getter for property handle.- Returns:
- Value of property handle.
-
setHandle
public void setHandle(ChartingHandle handle)
Setter for property handle.- Parameters:
handle- New value of property handle.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG