Class: SuperInstance::Equipment::SwarmCoordinator::SwarmConfig

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

Overview

Configuration for the Swarm Coordinator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#adaptive_allocationObject (readonly)

Returns the value of attribute adaptive_allocation

Returns:

  • (Object)

    the current value of adaptive_allocation



13
14
15
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13

def adaptive_allocation
  @adaptive_allocation
end

#conflict_resolutionObject (readonly)

Returns the value of attribute conflict_resolution

Returns:

  • (Object)

    the current value of conflict_resolution



13
14
15
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13

def conflict_resolution
  @conflict_resolution
end

#enable_hierarchyObject (readonly)

Returns the value of attribute enable_hierarchy

Returns:

  • (Object)

    the current value of enable_hierarchy



13
14
15
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13

def enable_hierarchy
  @enable_hierarchy
end

#knowledge_isolationObject (readonly)

Returns the value of attribute knowledge_isolation

Returns:

  • (Object)

    the current value of knowledge_isolation



13
14
15
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13

def knowledge_isolation
  @knowledge_isolation
end

#max_agentsObject (readonly)

Returns the value of attribute max_agents

Returns:

  • (Object)

    the current value of max_agents



13
14
15
# File 'lib/equipment/swarm_coordinator/swarm_coordinator.rb', line 13

def max_agents
  @max_agents
end

#max_hierarchy_depthObject (readonly)

Returns the value of attribute max_hierarchy_depth

Returns:

  • (Object)

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

Returns the value of attribute performance_window_size

Returns:

  • (Object)

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

Returns the value of attribute task_timeout

Returns:

  • (Object)

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