resource-timeline
Resource timelines for onboard scheduling: energy, memory, thermal and communication budgets with explained violations, envelopes and allocation-free storage
cargo add resource-timeline Who it is for
- Flight software and mission operations engineers who place activities on a spacecraft or rover and need to know whether battery, memory, data volume, instruments or comm windows hold up, onboard or on the ground before uplink.
- Developers of onboard or embedded schedulers that need checked arithmetic, explicit budgets and no heap.
- Planners and replanners that want a violation explained (the tick, the level and the activities involved) instead of a bare "infeasible".
- Game AI and simulation developers whose agents spend stamina, ammunition, storage or build capacity over game ticks, as in colony, strategy and survival games. Earliest-start search answers when an agent can afford an action, interval claims model shared workstations and cooldowns, end-state targets check a build order against a scouted attack, and the allocation-free variants keep checks off the heap inside a frame. See
examples/colony.rsandexamples/rush.rs. - For the timing side of the same schedule (whether its temporal constraints can be met under uncertain durations, and executing it), use temporal-control. The two crates share only a convention (
i64ticks, half-open intervals) and no dependency, because temporal controllability does not imply resource safety and both checks have to run.
Algorithms 3
- Earliest-start search earliest-feasible-start search
Finds the earliest start in a window at which an activity fits on every timeline of a plan, solved in closed form per linear piece when rates are involved.
-
Places activities in priority order at their earliest feasible start, never moving or backtracking.
-
Bounds the level over every schedule the start windows admit, with uncertain durations and precedences coupled exactly by a minimum cut.