Class DelegationChain

java.lang.Object
com.tnsai.coordination.groups.hierarchy.DelegationChain

public class DelegationChain extends Object
Tracks how tasks flow through the hierarchy via delegation and escalation.

Each entry records who delegated/escalated a task, to whom, and when.

  • Constructor Details

    • DelegationChain

      public DelegationChain()
  • Method Details

    • record

      public void record(String fromAgentId, String toAgentId, String task, DelegationChain.Type type)
      Records a delegation event.
      Parameters:
      fromAgentId - delegating agent
      toAgentId - receiving agent
      task - task description
      type - delegation or escalation
    • getEntries

      public List<DelegationChain.Entry> getEntries()
      Returns all entries in the chain.
      Returns:
      unmodifiable list of entries
    • size

      public int size()
      Returns the number of entries.
      Returns:
      entry count
    • clear

      public void clear()
      Clears all entries.