Enum Class TeamFormation

java.lang.Object
java.lang.Enum<TeamFormation>
com.tnsai.coordination.groups.team.TeamFormation
All Implemented Interfaces:
Serializable, Comparable<TeamFormation>, Constable

public enum TeamFormation extends Enum<TeamFormation>
Execution formation patterns for a Team.

TeamFormation determines how team members coordinate when executing tasks together.

  • Enum Constant Details

    • PARALLEL

      public static final TeamFormation PARALLEL
      All members execute the task simultaneously. Results are gathered and aggregated. Best for: Independent analysis, voting, consensus.
    • SEQUENTIAL

      public static final TeamFormation SEQUENTIAL
      Members execute in sequence, passing context forward. Each member builds on the previous one's work. Best for: Pipeline processing, review chains.
    • HIERARCHICAL

      public static final TeamFormation HIERARCHICAL
      Lead coordinates and delegates to members. Lead synthesizes member contributions. Best for: Complex tasks requiring coordination.
    • ADAPTIVE

      public static final TeamFormation ADAPTIVE
      Formation adapts based on task complexity. Simple tasks → parallel, complex → hierarchical. Best for: Variable workloads.
    • DEBATE

      public static final TeamFormation DEBATE
      Members debate and discuss to reach consensus. Multiple rounds of discussion before conclusion. Best for: Decision making, analysis.
    • ROUND_ROBIN

      public static final TeamFormation ROUND_ROBIN
      Round-robin execution with handoff between members. Each member adds their perspective in turn. Best for: Iterative refinement.
  • Method Details

    • values

      public static TeamFormation[] 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

      public static TeamFormation valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getDescription

      public String 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