Enum Class TeamFormation
- All Implemented Interfaces:
Serializable,Comparable<TeamFormation>,Constable
Execution formation patterns for a Team.
TeamFormation determines how team members coordinate when executing tasks together.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFormation adapts based on task complexity.Members debate and discuss to reach consensus.Lead coordinates and delegates to members.All members execute the task simultaneously.Round-robin execution with handoff between members.Members execute in sequence, passing context forward. -
Method Summary
Modifier and TypeMethodDescriptionReturns a description of this formation.booleanChecks if this formation processes in order.booleanChecks if this formation requires a lead.static TeamFormationReturns the enum constant of this class with the specified name.static TeamFormation[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PARALLEL
All members execute the task simultaneously. Results are gathered and aggregated. Best for: Independent analysis, voting, consensus. -
SEQUENTIAL
Members execute in sequence, passing context forward. Each member builds on the previous one's work. Best for: Pipeline processing, review chains. -
HIERARCHICAL
Lead coordinates and delegates to members. Lead synthesizes member contributions. Best for: Complex tasks requiring coordination. -
ADAPTIVE
Formation adapts based on task complexity. Simple tasks → parallel, complex → hierarchical. Best for: Variable workloads. -
DEBATE
Members debate and discuss to reach consensus. Multiple rounds of discussion before conclusion. Best for: Decision making, analysis. -
ROUND_ROBIN
Round-robin execution with handoff between members. Each member adds their perspective in turn. Best for: Iterative refinement.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getDescription
Returns a description of this formation.- Returns:
- description
-
requiresLead
public boolean requiresLead()Checks if this formation requires a lead.- Returns:
- true if lead required
-
isOrdered
public boolean isOrdered()Checks if this formation processes in order.- Returns:
- true if ordered
-