#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct TopologyHint {
pub grid: bool,
pub agents: bool,
pub edges: bool,
}
impl TopologyHint {
pub const GRID: Self = Self {
grid: true,
agents: false,
edges: false,
};
pub const AGENTS: Self = Self {
grid: false,
agents: true,
edges: false,
};
pub const COMPOSITE: Self = Self {
grid: true,
agents: true,
edges: false,
};
pub const NETWORK: Self = Self {
grid: false,
agents: true,
edges: true,
};
pub const NONE: Self = Self {
grid: false,
agents: false,
edges: false,
};
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum NeighborhoodKind {
Moore,
VonNeumann,
}