Class: SuperInstance::Equipment::SwarmCoordinator::AggregationConfig

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

Overview

Configuration for result aggregation

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#conflict_resolutionObject (readonly)

Returns the value of attribute conflict_resolution

Returns:

  • (Object)

    the current value of conflict_resolution



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

def conflict_resolution
  @conflict_resolution
end

#enable_cachingObject (readonly)

Returns the value of attribute enable_caching

Returns:

  • (Object)

    the current value of enable_caching



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

def enable_caching
  @enable_caching
end

#enable_validationObject (readonly)

Returns the value of attribute enable_validation

Returns:

  • (Object)

    the current value of enable_validation



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

def enable_validation
  @enable_validation
end

#max_cache_sizeObject (readonly)

Returns the value of attribute max_cache_size

Returns:

  • (Object)

    the current value of max_cache_size



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

def max_cache_size
  @max_cache_size
end

#min_confidenceObject (readonly)

Returns the value of attribute min_confidence

Returns:

  • (Object)

    the current value of min_confidence



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

def min_confidence
  @min_confidence
end

#timeoutObject (readonly)

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



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

def timeout
  @timeout
end

Class Method Details

.new(**kwargs) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/equipment/swarm_coordinator/result_aggregator.rb', line 17

def self.new(**kwargs)
  defaults = {
    conflict_resolution: Types::ConflictResolutionStrategy::WEIGHTED,
    enable_validation: true,
    min_confidence: 0.5,
    enable_caching: true,
    max_cache_size: 1000,
    timeout: 30_000
  }
  super(**defaults.merge(kwargs))
end