Class CortexSample

java.lang.Object
com.javiergs.cortex4j.CortexSample

public final class CortexSample extends Object
A single Cortex stream sample, preserving the original channel values. Stream channel layouts depend on the headset and Cortex subscription. Values preserve their original JSON representation; use the Cortex stream documentation to interpret channel ordering.
Version:
1.0 (2026-10-29)
Author:
javiergs
  • Constructor Details

    • CortexSample

      public CortexSample(String stream, BigDecimal timestamp, String sessionId, List<com.fasterxml.jackson.databind.JsonNode> values)
  • Method Details

    • getStream

      public String getStream()
      Returns:
      Cortex stream name (for example, met or eeg)
    • getTimestamp

      public BigDecimal getTimestamp()
      Returns:
      timestamp supplied by Cortex
    • getSessionId

      public String getSessionId()
      Returns:
      originating Cortex session ID, if provided
    • getValues

      public List<com.fasterxml.jackson.databind.JsonNode> getValues()
      Returns:
      immutable list of raw channel values in Cortex stream order