Package synapse

Class SynapsePipelineType<T>

java.lang.Object
synapse.SynapsePipelineType<T>
Type Parameters:
T - the type of result data returned by this pipeline, typically a List or Map of results

public class SynapsePipelineType<T> extends Object
Represents a Synapse pipeline. Each pipeline is associated with a result class that defines the type of data returned.
  • Field Details

    • kApriltag

      public static final SynapsePipelineType<ApriltagResult> kApriltag
      The AprilTag pipeline. This pipeline uses the ApriltagResult class to store the result data.
    • kColor

      public static final SynapsePipelineType<ColorResult> kColor
      The color detection pipeline. This pipeline detects colored regions in the camera feed and stores the result using the ColorResult class.
    • typestring

      public final String typestring
      The string identifier for this pipeline, used as the topic name.
  • Constructor Details

    • SynapsePipelineType

      public SynapsePipelineType(com.fasterxml.jackson.core.type.TypeReference<T> typeRef, String typestring)
      Constructor for the SynapsePipeline class.
      Parameters:
      typeRef - The TypeReference associated with this pipeline's result data.
      typestring - The string identifier for this pipeline.
  • Method Details

    • getTypeReference

      public com.fasterxml.jackson.core.type.TypeReference<T> getTypeReference()
      Gets the TypeReference for this pipeline.
      Returns:
      The TypeReference representing the result type T.