mod guarantee;
pub use guarantee::{Guarantee, Property, Unverified};
use crate::game::Domain;
#[derive(Clone, Debug, PartialEq)]
pub struct Solution {
pub(crate) domain: Domain,
pub(crate) allocation: Vec<f64>,
pub(crate) guarantee: Guarantee,
pub(crate) method: &'static str,
}
impl Solution {
pub fn domain(&self) -> Domain {
self.domain
}
pub fn allocation(&self) -> &[f64] {
&self.allocation
}
pub fn into_allocation(self) -> Vec<f64> {
self.allocation
}
pub fn guarantee(&self) -> Guarantee {
self.guarantee
}
pub fn method(&self) -> &'static str {
self.method
}
}