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