Class: SuperInstance::Equipment::SwarmCoordinator::AggregationConfig
- Inherits:
-
Data
- Object
- Data
- SuperInstance::Equipment::SwarmCoordinator::AggregationConfig
- Defined in:
- lib/equipment/swarm_coordinator/result_aggregator.rb
Overview
Configuration for result aggregation
Instance Attribute Summary collapse
-
#conflict_resolution ⇒ Object
readonly
Returns the value of attribute conflict_resolution.
-
#enable_caching ⇒ Object
readonly
Returns the value of attribute enable_caching.
-
#enable_validation ⇒ Object
readonly
Returns the value of attribute enable_validation.
-
#max_cache_size ⇒ Object
readonly
Returns the value of attribute max_cache_size.
-
#min_confidence ⇒ Object
readonly
Returns the value of attribute min_confidence.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Class Method Summary collapse
Instance Attribute Details
#conflict_resolution ⇒ Object (readonly)
Returns the value of attribute conflict_resolution
9 10 11 |
# File 'lib/equipment/swarm_coordinator/result_aggregator.rb', line 9 def conflict_resolution @conflict_resolution end |
#enable_caching ⇒ Object (readonly)
Returns the value of attribute enable_caching
9 10 11 |
# File 'lib/equipment/swarm_coordinator/result_aggregator.rb', line 9 def enable_caching @enable_caching end |
#enable_validation ⇒ Object (readonly)
Returns the value of attribute enable_validation
9 10 11 |
# File 'lib/equipment/swarm_coordinator/result_aggregator.rb', line 9 def enable_validation @enable_validation end |
#max_cache_size ⇒ Object (readonly)
Returns the value of attribute 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_confidence ⇒ Object (readonly)
Returns the value of attribute min_confidence
9 10 11 |
# File 'lib/equipment/swarm_coordinator/result_aggregator.rb', line 9 def min_confidence @min_confidence end |
#timeout ⇒ Object (readonly)
Returns the value of attribute 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 |