pub struct Fifo;Expand description
FIFO 選択(frontiers の順番)
スコアリングを行わず、単純に追加順で選択する。 デバッグや比較実験のベースラインとして有用。
Implementations§
Trait Implementations§
Source§impl<N, E, S> SelectionLogic<N, E, S> for Fifo
impl<N, E, S> SelectionLogic<N, E, S> for Fifo
Source§fn next(
&self,
map: &GraphMap<N, E, S>,
_stats: &SwarmStats,
_provider: &dyn LearnedProvider,
) -> Option<MapNodeId>
fn next( &self, map: &GraphMap<N, E, S>, _stats: &SwarmStats, _provider: &dyn LearnedProvider, ) -> Option<MapNodeId>
次のノードを1つ選択
Source§fn select(
&self,
map: &GraphMap<N, E, S>,
count: usize,
_stats: &SwarmStats,
_provider: &dyn LearnedProvider,
) -> Vec<MapNodeId>
fn select( &self, map: &GraphMap<N, E, S>, count: usize, _stats: &SwarmStats, _provider: &dyn LearnedProvider, ) -> Vec<MapNodeId>
次のノードを複数選択
Source§fn score(
&self,
_action: &str,
_target: Option<&str>,
_stats: &SwarmStats,
_provider: &dyn LearnedProvider,
) -> f64
fn score( &self, _action: &str, _target: Option<&str>, _stats: &SwarmStats, _provider: &dyn LearnedProvider, ) -> f64
ノードのスコアを計算
Auto Trait Implementations§
impl Freeze for Fifo
impl RefUnwindSafe for Fifo
impl Send for Fifo
impl Sync for Fifo
impl Unpin for Fifo
impl UnwindSafe for Fifo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more