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
Represents a Synapse pipeline. Each pipeline is associated with a result class that defines the
type of data returned.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SynapsePipelineType<ApriltagResult>The AprilTag pipeline.static final SynapsePipelineType<ColorResult>The color detection pipeline.final StringThe string identifier for this pipeline, used as the topic name. -
Constructor Summary
ConstructorsConstructorDescriptionSynapsePipelineType(com.fasterxml.jackson.core.type.TypeReference<T> typeRef, String typestring) Constructor for the SynapsePipeline class. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.core.type.TypeReference<T>Gets the TypeReference for this pipeline.
-
Field Details
-
kApriltag
The AprilTag pipeline. This pipeline uses theApriltagResultclass to store the result data. -
kColor
The color detection pipeline. This pipeline detects colored regions in the camera feed and stores the result using theColorResultclass. -
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
Gets the TypeReference for this pipeline.- Returns:
- The TypeReference representing the result type
T.
-