24 [[nodiscard]] std::string_view
name() const noexcept override;
36 [[nodiscard]] std::
size_t timeSlice() const noexcept;
Abstract clock interface for simulation time.
Strategy interface for scheduling algorithms.
bool shouldPreempt(const SchedulingProcessSnapshot &running, const SchedulingProcessSnapshot &candidate, const IClock &clock) const override
Returns true if running process exhausted its slice.
ProcessId selectNext(const std::vector< SchedulingProcessSnapshot > &readyQueue, const IClock &clock) const override
Selects the next process in round-robin queue order.
std::string_view name() const noexcept override
Policy name.
std::size_t timeSlice() const noexcept
Configured time slice.
RoundRobinPolicy(std::size_t timeSlice)
Constructs Round Robin policy.
ISchedulingPolicy interface for pluggable scheduling algorithms.
std::uint32_t ProcessId
Unique identifier for a process.
Immutable process view consumed by scheduling policies.