Class: SuperInstance::Equipment::SwarmCoordinator::DecompositionConfig
- Inherits:
-
Data
- Object
- Data
- SuperInstance::Equipment::SwarmCoordinator::DecompositionConfig
- Defined in:
- lib/equipment/swarm_coordinator/task_decomposer.rb
Overview
Configuration for task decomposition
Instance Attribute Summary collapse
-
#auto_dependency_detection ⇒ Object
readonly
Returns the value of attribute auto_dependency_detection.
-
#default_timeout ⇒ Object
readonly
Returns the value of attribute default_timeout.
-
#max_depth ⇒ Object
readonly
Returns the value of attribute max_depth.
-
#max_parallelism ⇒ Object
readonly
Returns the value of attribute max_parallelism.
-
#min_task_size ⇒ Object
readonly
Returns the value of attribute min_task_size.
Class Method Summary collapse
Instance Attribute Details
#auto_dependency_detection ⇒ Object (readonly)
Returns the value of attribute auto_dependency_detection
9 10 11 |
# File 'lib/equipment/swarm_coordinator/task_decomposer.rb', line 9 def auto_dependency_detection @auto_dependency_detection end |
#default_timeout ⇒ Object (readonly)
Returns the value of attribute default_timeout
9 10 11 |
# File 'lib/equipment/swarm_coordinator/task_decomposer.rb', line 9 def default_timeout @default_timeout end |
#max_depth ⇒ Object (readonly)
Returns the value of attribute max_depth
9 10 11 |
# File 'lib/equipment/swarm_coordinator/task_decomposer.rb', line 9 def max_depth @max_depth end |
#max_parallelism ⇒ Object (readonly)
Returns the value of attribute max_parallelism
9 10 11 |
# File 'lib/equipment/swarm_coordinator/task_decomposer.rb', line 9 def max_parallelism @max_parallelism end |
#min_task_size ⇒ Object (readonly)
Returns the value of attribute min_task_size
9 10 11 |
# File 'lib/equipment/swarm_coordinator/task_decomposer.rb', line 9 def min_task_size @min_task_size end |
Class Method Details
.new(**kwargs) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/equipment/swarm_coordinator/task_decomposer.rb', line 16 def self.new(**kwargs) defaults = { max_parallelism: 10, min_task_size: 0.1, max_depth: 5, auto_dependency_detection: true, default_timeout: 60_000 } super(**defaults.merge(kwargs)) end |