Skip to main content

Crate plato_engine_block

Crate plato_engine_block 

Source
Expand description

§Plato Engine Block

Atomic room runtime for the Plato Matrix — the universal agent-space interface.

A “room” is a self-contained unit of sensor/actuator interaction that ticks at a configurable rate, maintains rolling history, and evaluates alarm rules. The text protocol allows external agents to query state, control actuators, and subscribe to live updates.

§Feature flags

  • std (default): Enables std support (File, println, etc.)
  • server: Enables the tokio-based TCP multi-client server

Re-exports§

pub use engine::PlatoEngine;
pub use engine::PlatoEngineBuilder;
pub use tick::Tick;
pub use sensor::Sensor;
pub use sensor::SensorFn;
pub use sensor::SensorSpec;
pub use actuator::Actuator;
pub use actuator::ActuatorFn;
pub use actuator::ActuatorSpec;
pub use alarm::AlarmRule;
pub use alarm::AlarmState;
pub use alarm::AlarmCondition;
pub use history::HistoryBuffer;
pub use protocol::ProtocolHandler;

Modules§

actuator
Actuator — callback-based writers that take f64.
alarm
Alarm — condition-based rules with cooldowns.
engine
Engine — the core PlatoEngine struct.
history
History — circular buffer of ticks.
protocol
Protocol — text command parser and response formatter.
sensor
Sensor — callback-based readers that return f64.
tick
Tick — a single snapshot of all sensor readings at a point in time.