Utility module naming
This commit is contained in:
parent
d2ba913525
commit
bb840f3c8a
@ -5,7 +5,7 @@ members = [
|
||||
"lab3",
|
||||
"lab4",
|
||||
"lab5",
|
||||
"tsp-utility"
|
||||
"utility"
|
||||
]
|
||||
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ workspace = true
|
||||
rand = "0.9.2"
|
||||
eframe = { version = "0.33.3", default-features = false, features = ["default_fonts", "glow"] }
|
||||
egui_extras = { version = "0.33.3" }
|
||||
tsp-utility = { path = "../tsp-utility" }
|
||||
bgtu-ai-utility = { path = "../utility" }
|
||||
|
||||
[profile.dev.package.eframe]
|
||||
opt-level = 2
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
mod state;
|
||||
|
||||
pub use tsp_utility::graph::{VerticesVec};
|
||||
use tsp_utility::graph::{Edge as _BaseEdge, EdgesVec as _BaseEdgesVec};
|
||||
pub use bgtu_ai_utility::graph::{VerticesVec};
|
||||
use bgtu_ai_utility::graph::{Edge as _BaseEdge, EdgesVec as _BaseEdgesVec};
|
||||
|
||||
pub struct EdgeExtraData {
|
||||
pub(crate) ferment_intensity: f64
|
||||
|
||||
@ -2,7 +2,7 @@ use super::EdgesVec;
|
||||
use rand::Rng;
|
||||
use std::collections::HashSet;
|
||||
use std::ops::Mul;
|
||||
use tsp_utility::graph::VerticesVec;
|
||||
use bgtu_ai_utility::graph::VerticesVec;
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
pub enum AntDirection {
|
||||
|
||||
@ -3,17 +3,16 @@
|
||||
mod algo;
|
||||
|
||||
use crate::algo::{
|
||||
Ant, AntsSimulationConfig, AntsSimulationState, EdgeExtraData, EdgesVec, VerticesVec,
|
||||
updateState,
|
||||
updateState, Ant, AntsSimulationConfig, AntsSimulationState, EdgeExtraData, EdgesVec,
|
||||
VerticesVec,
|
||||
};
|
||||
use eframe::egui;
|
||||
use eframe::egui::{Frame, Ui};
|
||||
use eframe::emath::Numeric;
|
||||
use std::cmp::max;
|
||||
use std::collections::HashSet;
|
||||
use std::ops::RangeInclusive;
|
||||
use tsp_utility::gui::lengths_table::{UpdatePending, draw_lengths_table};
|
||||
use tsp_utility::gui::render::render_graph;
|
||||
use bgtu_ai_utility::gui::lengths_table::{draw_lengths_table, UpdatePending};
|
||||
use bgtu_ai_utility::gui::render::render_graph;
|
||||
|
||||
fn main() -> eframe::Result {
|
||||
let options = eframe::NativeOptions {
|
||||
|
||||
@ -9,7 +9,7 @@ workspace = true
|
||||
rand = "0.9.2"
|
||||
eframe = { version = "0.33.3", default-features = false, features = ["default_fonts", "glow"] }
|
||||
egui_extras = { version = "0.33.3" }
|
||||
tsp-utility = { path = "../tsp-utility" }
|
||||
bgtu-ai-utility = { path = "../utility" }
|
||||
|
||||
[profile.dev.package.eframe]
|
||||
opt-level = 2
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "tsp-utility"
|
||||
name = "bgtu-ai-utility"
|
||||
edition = "2024"
|
||||
|
||||
[lints]
|
||||
Loading…
Reference in New Issue
Block a user