Class DefaultPipelineOrg
java.lang.Object
com.tnsai.coordination.groups.DefaultAgentGroup
com.tnsai.coordination.groups.pipeline.DefaultPipelineOrg
- All Implemented Interfaces:
com.tnsai.agents.groups.AgentGroup,PipelineOrganization
Default implementation of PipelineOrganization.
Provides sequential stage-based processing where input flows through each stage in order, with metrics tracking and bottleneck detection.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPipelineOrg(String id, String name, String description, com.tnsai.agents.groups.GroupPolicy policy) Creates a new DefaultPipelineOrg. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new stage at the end of the pipeline.Executes the pipeline with the given input.Returns the current bottleneck stage (slowest).Returns the pipeline metrics.Returns all stages in pipeline order.toString()Methods inherited from class com.tnsai.coordination.groups.DefaultAgentGroup
addLifecycleListener, addMember, addMembershipListener, assignTask, broadcast, dissolve, electLeader, electLeader, findMembers, getDescription, getEventBus, getId, getLeader, getLifecycle, getMember, getMembers, getMembershipManager, getMetrics, getName, getPolicy, hasMember, notifyTaskComplete, notifyTaskFailed, removeLifecycleListener, removeMember, removeMembershipListener, scatter, scatter, scatterAsync, setPolicy, start, stop, stopNowMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.tnsai.agents.groups.AgentGroup
addLifecycleListener, addMember, addMembershipListener, assignTask, broadcast, broadcast, dissolve, electLeader, electLeader, findMembers, getDescription, getEventBus, getId, getLeader, getLifecycle, getMember, getMemberCount, getMembers, getMembershipManager, getMetrics, getName, getPolicy, hasMember, isActive, isDissolved, removeLifecycleListener, removeMember, removeMembershipListener, scatter, scatter, scatterAsync, setPolicy, start, stop, stopNow
-
Constructor Details
-
Method Details
-
getStages
Description copied from interface:PipelineOrganizationReturns all stages in pipeline order.- Specified by:
getStagesin interfacePipelineOrganization- Returns:
- ordered list of stages
-
addStage
Description copied from interface:PipelineOrganizationAdds a new stage at the end of the pipeline.- Specified by:
addStagein interfacePipelineOrganization- Parameters:
name- stage nameagentId- agent ID for this stage
-
execute
Description copied from interface:PipelineOrganizationExecutes the pipeline with the given input. Data flows sequentially through each stage.- Specified by:
executein interfacePipelineOrganization- Parameters:
input- initial input- Returns:
- pipeline execution result
-
getPipelineMetrics
Description copied from interface:PipelineOrganizationReturns the pipeline metrics.- Specified by:
getPipelineMetricsin interfacePipelineOrganization- Returns:
- pipeline metrics
-
getBottleneck
Description copied from interface:PipelineOrganizationReturns the current bottleneck stage (slowest).- Specified by:
getBottleneckin interfacePipelineOrganization- Returns:
- bottleneck stage name, or empty if no data
-
toString
- Overrides:
toStringin classDefaultAgentGroup
-