Package de.gsi.chart.samples
Class RollingBufferSample
- java.lang.Object
-
- javafx.application.Application
-
- de.gsi.chart.samples.RollingBufferSample
-
- Direct Known Subclasses:
ChartHighUpdateRateSample,RollingBufferNewRefSample
public class RollingBufferSample extends javafx.application.Application- Author:
- rstein
-
-
Field Summary
Fields Modifier and Type Field Description static intBUFFER_CAPACITYstatic intDEBUG_UPDATE_RATEprotected static intMIN_PIXEL_DISTANCEstatic intN_SAMPLESde.gsi.dataset.spi.CircularDoubleErrorDataSetrollingBufferBeamIntensityde.gsi.dataset.spi.CircularDoubleErrorDataSetrollingBufferDipoleCurrentprotected java.util.Timer[]timerstatic intUPDATE_PERIOD
-
Constructor Summary
Constructors Constructor Description RollingBufferSample()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.TimerTaskgetTask(int updateItem)javafx.scene.layout.BorderPaneinitComponents(javafx.scene.Scene scene)protected voidinitErrorDataSetRenderer(de.gsi.chart.renderer.spi.ErrorDataSetRenderer eRenderer)static voidmain(java.lang.String[] args)static doublerampFunctionBeamIntensity(double t)static doublerampFunctionDipoleCurrent(double t)voidstart(javafx.stage.Stage primaryStage)
-
-
-
Field Detail
-
DEBUG_UPDATE_RATE
public static final int DEBUG_UPDATE_RATE
- See Also:
- Constant Field Values
-
MIN_PIXEL_DISTANCE
protected static final int MIN_PIXEL_DISTANCE
- See Also:
- Constant Field Values
-
N_SAMPLES
public static int N_SAMPLES
-
UPDATE_PERIOD
public static int UPDATE_PERIOD
-
BUFFER_CAPACITY
public static int BUFFER_CAPACITY
-
rollingBufferDipoleCurrent
public final de.gsi.dataset.spi.CircularDoubleErrorDataSet rollingBufferDipoleCurrent
-
rollingBufferBeamIntensity
public final de.gsi.dataset.spi.CircularDoubleErrorDataSet rollingBufferBeamIntensity
-
timer
protected java.util.Timer[] timer
-
-
Method Detail
-
getTask
protected java.util.TimerTask getTask(int updateItem)
-
initComponents
public javafx.scene.layout.BorderPane initComponents(javafx.scene.Scene scene)
-
initErrorDataSetRenderer
protected void initErrorDataSetRenderer(de.gsi.chart.renderer.spi.ErrorDataSetRenderer eRenderer)
-
start
public void start(javafx.stage.Stage primaryStage)
- Specified by:
startin classjavafx.application.Application
-
main
public static void main(java.lang.String[] args)
- Parameters:
args- the command line arguments
-
rampFunctionBeamIntensity
public static double rampFunctionBeamIntensity(double t)
-
rampFunctionDipoleCurrent
public static double rampFunctionDipoleCurrent(double t)
-
-