Class: SuperInstance::Equipment::SwarmCoordinator::DecompositionConfig

Inherits:
Data
  • Object
show all
Defined in:
lib/equipment/swarm_coordinator/task_decomposer.rb

Overview

Configuration for task decomposition

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#auto_dependency_detectionObject (readonly)

Returns the value of attribute auto_dependency_detection

Returns:

  • (Object)

    the current value of 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_timeoutObject (readonly)

Returns the value of attribute default_timeout

Returns:

  • (Object)

    the current value of default_timeout



9
10
11
# File 'lib/equipment/swarm_coordinator/task_decomposer.rb', line 9

def default_timeout
  @default_timeout
end

#max_depthObject (readonly)

Returns the value of attribute max_depth

Returns:

  • (Object)

    the current value of max_depth



9
10
11
# File 'lib/equipment/swarm_coordinator/task_decomposer.rb', line 9

def max_depth
  @max_depth
end

#max_parallelismObject (readonly)

Returns the value of attribute max_parallelism

Returns:

  • (Object)

    the current value of max_parallelism



9
10
11
# File 'lib/equipment/swarm_coordinator/task_decomposer.rb', line 9

def max_parallelism
  @max_parallelism
end

#min_task_sizeObject (readonly)

Returns the value of attribute min_task_size

Returns:

  • (Object)

    the current value of 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