Demo-Stuck Controller¶
The demo_stuck controller plugin is a controller that can be configured to run very slowly and get stuck at certain point in the simulation. This is primarily used for system testing.
Examples¶
You can see the plugin in action in the system test at
engine/tests/test_engine_stuck_controller.json, among other tests.
Defaults¶
The following help can be viewed with cloe-engine usage demo_stuck:
Name: demo_stuck
Type: controller
Path: ~/.conan/data/cloe-plugin-mocks/0.25.0/cloe/develop/package/722452d8f3bfc1eef1fc5de534638769b66120b8/lib/cloe/controller_demo_stuck.so
Usage: {
"halt_progress_at": "integer :: time in ns at which to halt all progress",
"progress_per_step": "integer :: progress to make each step"
}
Defaults: {
"halt_progress_at": 10000000000,
"progress_per_step": 100000
}
JSON Schema¶
The following can be viewed with cloe-engine usage --json demo_stuck:
{
"$id": "~/.conan/data/cloe-plugin-mocks/0.25.0/cloe/develop/package/722452d8f3bfc1eef1fc5de534638769b66120b8/lib/cloe/controller_demo_stuck.so",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"description": "slowly progressing demo controller",
"properties": {
"halt_progress_at": {
"description": "time in ns at which to halt all progress",
"maximum": 9223372036854775807,
"minimum": -9223372036854775808,
"type": "integer"
},
"progress_per_step": {
"description": "progress to make each step",
"maximum": 9223372036854775807,
"minimum": -9223372036854775808,
"type": "integer"
}
},
"title": "demo_stuck",
"type": "object"
}