Class: SuperInstance::Equipment::SwarmCoordinator::SwarmConfig
- Inherits:
-
Data
- Object
- Data
- SuperInstance::Equipment::SwarmCoordinator::SwarmConfig
- Defined in:
- lib/equipment/swarm_coordinator/swarm_coordinator.rb
Overview
Configuration for the Swarm Coordinator
Instance Attribute Summary collapse
-
#adaptive_allocation ⇒ Object
readonly
Returns the value of attribute adaptive_allocation.
-
#conflict_resolution ⇒ Object
readonly
Returns the value of attribute conflict_resolution.
-
#enable_hierarchy ⇒ Object
readonly
Returns the value of attribute enable_hierarchy.
-
#knowledge_isolation ⇒ Object
readonly
Returns the value of attribute knowledge_isolation.
-
#max_agents ⇒ Object
readonly
Returns the value of attribute max_agents.
-
#max_hierarchy_depth ⇒ Object
readonly
Returns the value of attribute max_hierarchy_depth.
-
#performance_window_size ⇒ Object
readonly
Returns the value of attribute performance_window_size.
-
#task_timeout ⇒ Object
readonly
Returns the value of attribute task_timeout.
Class Method Summary collapse
Instance Attribute Details
#adaptive_allocation ⇒ Object (readonly)
Returns the value of attribute adaptive_allocation
13 14 15 |
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13 def adaptive_allocation @adaptive_allocation end |
#conflict_resolution ⇒ Object (readonly)
Returns the value of attribute conflict_resolution
13 14 15 |
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13 def conflict_resolution @conflict_resolution end |
#enable_hierarchy ⇒ Object (readonly)
Returns the value of attribute enable_hierarchy
13 14 15 |
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13 def enable_hierarchy @enable_hierarchy end |
#knowledge_isolation ⇒ Object (readonly)
Returns the value of attribute knowledge_isolation
13 14 15 |
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13 def knowledge_isolation @knowledge_isolation end |
#max_agents ⇒ Object (readonly)
Returns the value of attribute max_agents
13 14 15 |
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13 def max_agents @max_agents end |
#max_hierarchy_depth ⇒ Object (readonly)
Returns the value of attribute max_hierarchy_depth
13 14 15 |
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13 def max_hierarchy_depth @max_hierarchy_depth end |
#performance_window_size ⇒ Object (readonly)
Returns the value of attribute performance_window_size
13 14 15 |
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13 def performance_window_size @performance_window_size end |
#task_timeout ⇒ Object (readonly)
Returns the value of attribute task_timeout
13 14 15 |
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13 def task_timeout @task_timeout end |
Class Method Details
.new(**kwargs) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 23 def self.new(**kwargs) defaults = { max_agents: 10, enable_hierarchy: true, max_hierarchy_depth: 3, knowledge_isolation: Types::IsolationLevel::MODERATE, task_timeout: 30_000, adaptive_allocation: true, conflict_resolution: Types::ConflictResolutionStrategy::WEIGHTED, performance_window_size: 100 } super(**defaults.merge(kwargs)) end |