Class DefaultMatrixOrg
java.lang.Object
com.tnsai.coordination.groups.DefaultAgentGroup
com.tnsai.coordination.groups.matrix.DefaultMatrixOrg
- All Implemented Interfaces:
com.tnsai.agents.groups.AgentGroup,MatrixOrganization
Default implementation of MatrixOrganization.
Provides a dual-reporting matrix structure where agents can belong to multiple dimensions and tasks can be executed within specific dimensions.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMatrixOrg(String id, String name, String description, com.tnsai.agents.groups.GroupPolicy policy) Creates a new DefaultMatrixOrg. -
Method Summary
Modifier and TypeMethodDescriptionvoidassignToDimension(String agentId, String dimension, String leadId) Assigns an agent to a dimension with an optional lead.executeInDimension(String dimension, String task) Executes a task within a specific dimension.getAgentDimensions(String agentId) Returns all dimensions an agent belongs to.Returns the cross-functional manager.List<com.tnsai.agents.Agent> getDimensionMembers(String dimension) Returns all members of a dimension.Returns all known dimensions.booleanremoveMember(String agentId) 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, 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, removeMembershipListener, scatter, scatter, scatterAsync, setPolicy, start, stop, stopNow
-
Constructor Details
-
Method Details
-
assignToDimension
Description copied from interface:MatrixOrganizationAssigns an agent to a dimension with an optional lead.- Specified by:
assignToDimensionin interfaceMatrixOrganization- Parameters:
agentId- agent to assigndimension- dimension nameleadId- dimension lead agent ID (may be null)
-
getDimensionMembers
Description copied from interface:MatrixOrganizationReturns all members of a dimension.- Specified by:
getDimensionMembersin interfaceMatrixOrganization- Parameters:
dimension- dimension name- Returns:
- list of agents in the dimension
-
getAgentDimensions
Description copied from interface:MatrixOrganizationReturns all dimensions an agent belongs to.- Specified by:
getAgentDimensionsin interfaceMatrixOrganization- Parameters:
agentId- agent ID- Returns:
- set of dimension names
-
getDimensions
Description copied from interface:MatrixOrganizationReturns all known dimensions.- Specified by:
getDimensionsin interfaceMatrixOrganization- Returns:
- set of dimension names
-
executeInDimension
Description copied from interface:MatrixOrganizationExecutes a task within a specific dimension. Only members of that dimension participate.- Specified by:
executeInDimensionin interfaceMatrixOrganization- Parameters:
dimension- dimension nametask- task to execute- Returns:
- execution result
-
getCrossFunctional
Description copied from interface:MatrixOrganizationReturns the cross-functional manager.- Specified by:
getCrossFunctionalin interfaceMatrixOrganization- Returns:
- cross-functional manager
-
removeMember
- Specified by:
removeMemberin interfacecom.tnsai.agents.groups.AgentGroup- Overrides:
removeMemberin classDefaultAgentGroup
-
toString
- Overrides:
toStringin classDefaultAgentGroup
-