Class MedicalSyncController

java.lang.Object
com.arbergashi.charts.medical.MedicalSyncController

public class MedicalSyncController extends Object
Synchronizes multiple CircularFastMedicalModel instances for medical multi-channel dashboards. Ensures all models advance in lockstep (same head index and timestamp). Thread-safe implementation using CopyOnWriteArrayList.
  • Constructor Details

    • MedicalSyncController

      public MedicalSyncController(int capacity)
  • Method Details

    • registerModel

      public void registerModel(CircularFastMedicalModel model)
    • tick

      public void tick(double x, double[][] data)
      Pushes a new sample across all channels at the same timestamp.
      Parameters:
      x - The timestamp shared across all models.
      data - A 2D array: [modelIndex][channelIndex].
    • getCapacity

      public int getCapacity()
    • getModelCount

      public int getModelCount()
    • getModel

      public CircularFastMedicalModel getModel(int idx)