use crate::Instant;
use crate::entities::LayoutSnapshot;
use crate::probs::spp::entities::SPInstance;
use crate::probs::spp::entities::strip::Strip;
#[derive(Debug, Clone)]
pub struct SPSolution {
pub strip: Strip,
pub layout_snapshot: LayoutSnapshot,
pub time_stamp: Instant,
}
impl SPSolution {
pub fn density(&self, instance: &SPInstance) -> f32 {
self.layout_snapshot.density(instance)
}
pub fn strip_width(&self) -> f32 {
self.strip.width
}
}