pub trait Pool: SaveToStatsFolder {
type Stats: Stats;
fn stats(&self) -> Self::Stats;
fn get_random_index(&mut self) -> Option<PoolStorageIndex>;
fn weight(&self) -> f64 { ... }
}
Expand description
A Pool
ranks test cases based on observations recorded by a sensor.
The pool trait is divided into two parts:
Pool
contains general methods that are independent of the sensor usedCompatibleWithObservations<O>
is a subtrait ofPool
. It describes how the pool handles observations made by theSensor
.
Required Associated Types
Required Methods
fn get_random_index(&mut self) -> Option<PoolStorageIndex>
fn get_random_index(&mut self) -> Option<PoolStorageIndex>
Get the index of a random test case.
Most Pool implementations will want to prioritise certain test cases over others based on their associated observations.