diff --git a/committed.toml b/committed.toml index 05d3481..598e8dc 100644 --- a/committed.toml +++ b/committed.toml @@ -28,8 +28,8 @@ allowed_scopes = [ "autorouter/invoker", "autorouter/measure_length", "autorouter/multilayer_autoroute", - "autorouter/permutator", - "autorouter/permuter", + "autorouter/planar_permutator", + "autorouter/planar_permuter", "autorouter/place_via", "autorouter/planar_autoroute", "autorouter/planner", diff --git a/src/autorouter/autorouter.rs b/src/autorouter/autorouter.rs index 0183fe4..1420f87 100644 --- a/src/autorouter/autorouter.rs +++ b/src/autorouter/autorouter.rs @@ -13,7 +13,7 @@ use thiserror::Error; use crate::{ autorouter::{ multilayer_autoroute::{MultilayerAutorouteExecutionStepper, MultilayerAutorouteOptions}, - permutator::PlanarAutorouteExecutionPermutator, + planar_permutator::PlanarAutorouteExecutionPermutator, planner::Planner, ratsnests::Ratsnests, }, diff --git a/src/autorouter/execution.rs b/src/autorouter/execution.rs index 528ae58..25f2fa8 100644 --- a/src/autorouter/execution.rs +++ b/src/autorouter/execution.rs @@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize}; use crate::{ autorouter::{ multilayer_autoroute::{MultilayerAutorouteExecutionStepper, MultilayerAutorouteOptions}, - permutator::PlanarAutorouteExecutionPermutator, + planar_permutator::PlanarAutorouteExecutionPermutator, }, board::{edit::BoardEdit, AccessMesadata}, layout::via::ViaWeight, diff --git a/src/autorouter/invoker.rs b/src/autorouter/invoker.rs index 9837745..6ad2e18 100644 --- a/src/autorouter/invoker.rs +++ b/src/autorouter/invoker.rs @@ -33,8 +33,8 @@ use super::{ history::{History, HistoryError}, measure_length::MeasureLengthExecutionStepper, multilayer_autoroute::MultilayerAutorouteExecutionStepper, - permutator::PlanarAutorouteExecutionPermutator, place_via::PlaceViaExecutionStepper, + planar_permutator::PlanarAutorouteExecutionPermutator, remove_bands::RemoveBandsExecutionStepper, Autorouter, AutorouterError, }; diff --git a/src/autorouter/mod.rs b/src/autorouter/mod.rs index 022c01f..897f270 100644 --- a/src/autorouter/mod.rs +++ b/src/autorouter/mod.rs @@ -12,10 +12,10 @@ pub mod history; pub mod invoker; pub mod measure_length; pub mod multilayer_autoroute; -pub mod permutator; -pub mod permuter; pub mod place_via; pub mod planar_autoroute; +pub mod planar_permutator; +pub mod planar_permuter; pub mod planner; pub mod pointroute; pub mod presorter; diff --git a/src/autorouter/multilayer_autoroute.rs b/src/autorouter/multilayer_autoroute.rs index 04c2493..4a637c1 100644 --- a/src/autorouter/multilayer_autoroute.rs +++ b/src/autorouter/multilayer_autoroute.rs @@ -11,8 +11,8 @@ use crate::{ autorouter::{ anterouter::{Anterouter, AnterouterOptions, AnterouterPlan}, invoker::GetDebugOverlayData, - permutator::PlanarAutorouteExecutionPermutator, planar_autoroute::PlanarAutorouteContinueStatus, + planar_permutator::PlanarAutorouteExecutionPermutator, ratline::RatlineUid, Autorouter, AutorouterError, PlanarAutorouteOptions, }, diff --git a/src/autorouter/permutator.rs b/src/autorouter/planar_permutator.rs similarity index 95% rename from src/autorouter/permutator.rs rename to src/autorouter/planar_permutator.rs index 5004b04..7b21907 100644 --- a/src/autorouter/permutator.rs +++ b/src/autorouter/planar_permutator.rs @@ -9,8 +9,8 @@ use specctra_core::mesadata::AccessMesadata; use crate::{ autorouter::{ invoker::GetDebugOverlayData, - permuter::{PermuteRatlines, RatlinesPermuter}, planar_autoroute::{PlanarAutorouteContinueStatus, PlanarAutorouteExecutionStepper}, + planar_permuter::{PermuteRatlines, RatlinePermuter}, presorter::{PresortParams, PresortRatlines, SccIntersectionsAndLengthPresorter}, ratline::RatlineUid, Autorouter, AutorouterError, PlanarAutorouteOptions, @@ -24,7 +24,7 @@ use crate::{ pub struct PlanarAutorouteExecutionPermutator { stepper: PlanarAutorouteExecutionStepper, - permuter: RatlinesPermuter, + permuter: RatlinePermuter, options: PlanarAutorouteOptions, } @@ -47,7 +47,7 @@ impl PlanarAutorouteExecutionPermutator { /*let permuter = RatlinesPermuter::SccPermutations(SccPermutationsRatlinePermuter::new( autorouter, ratlines, presorter, &options, ));*/ - let permuter = RatlinesPermuter::new(autorouter, ratlines, presorter, &options); + let permuter = RatlinePermuter::new(autorouter, ratlines, presorter, &options); Ok(Self { stepper: PlanarAutorouteExecutionStepper::new( diff --git a/src/autorouter/permuter.rs b/src/autorouter/planar_permuter.rs similarity index 97% rename from src/autorouter/permuter.rs rename to src/autorouter/planar_permuter.rs index 728582e..544b3de 100644 --- a/src/autorouter/permuter.rs +++ b/src/autorouter/planar_permuter.rs @@ -29,19 +29,19 @@ pub trait PermuteRatlines { } #[enum_dispatch(PermuteRatlines)] -pub enum RatlinesPermuter { +pub enum RatlinePermuter { RatlineCuts(RatlineCutsRatlinePermuter), SccPermutations(SccPermutationsRatlinePermuter), } -impl RatlinesPermuter { +impl RatlinePermuter { pub fn new( autorouter: &mut Autorouter, ratlines: Vec, presorter: SccIntersectionsAndLengthPresorter, options: &PlanarAutorouteOptions, ) -> Self { - RatlinesPermuter::SccPermutations(SccPermutationsRatlinePermuter::new( + RatlinePermuter::SccPermutations(SccPermutationsRatlinePermuter::new( autorouter, ratlines, presorter, options, )) /*RatlinesPermuter::RatlineCuts(RatlineCutsRatlinePermuter::new(