Class DelegationChain
java.lang.Object
com.tnsai.coordination.groups.hierarchy.DelegationChain
Tracks how tasks flow through the hierarchy via delegation and escalation.
Each entry records who delegated/escalated a task, to whom, and when.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA single delegation/escalation entry.static enumType of delegation flow. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DelegationChain
public DelegationChain()
-
-
Method Details
-
record
Records a delegation event.- Parameters:
fromAgentId- delegating agenttoAgentId- receiving agenttask- task descriptiontype- delegation or escalation
-
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.
-