A comprehensive collection of example programs and environments for the Rhylthyme real-time scheduling system.
This repository contains working examples of Rhylthyme programs and environments that demonstrate various features and use cases. All examples are validated against the Rhylthyme schema and can be run with the rhylthyme-cli-runner.
-
Install the CLI runner:
pip install rhylthyme-cli-runner
-
Validate an example:
rhylthyme validate programs/breakfast_schedule.json
-
Run an example:
rhylthyme run programs/breakfast_schedule.json
breakfast_schedule.json- Simple breakfast preparation with eggs, bacon, and toastbreakfast_manual_triggers.json- Breakfast with manual step completionbreakfast_with_buffers.json- Breakfast with setup and cleanup buffersbreakfast_from_tracks.json- Breakfast using track templatesbreakfast_with_environment.json- Breakfast referencing an environment file
restaurant_breakfast.json- Restaurant breakfast servicecommercial_kitchen_service.json- Commercial kitchen operationskitchen_actors_example.json- Kitchen with multiple actor types
bakery_program_example.json- Commercial bakery operationsartisan_bread_production.json- Artisan bread making process
lab_experiment.json- Basic laboratory experimentcell_culture_experiment.json- Cell culture proceduresprotein_lysate_immunoblotting.json- Protein analysis workflowrat_psychopharmacology.json- Animal research protocoldrug_screening_from_tracks.json- Drug screening using track templates
biotech-company-lab.json- Biotech company laboratory environmentsmall-academic-lab.json- Small academic laboratory environmentlarge_pharma_lab.json- Large pharmaceutical laboratory environment
airport_program_example.json- Airport operations and schedulingairport_batch_example.json- Batch processing for airport operationsgo_around_example.yaml- Aircraft go-around procedures
academy_awards_ceremony.json- Complex event scheduling for awards ceremony
resource_contention_example.yaml- Demonstrates resource contention and optimizationmulti_resource_example.json- Multiple resource types and constraintsfractional_resource_example.json- Fractional resource usagetest_overutilization.json- Resource overutilization scenarios
time_format_stagger_example.yaml- Time format variations and staggeringflexible_time_format_example.yaml- Flexible time format usagestaggered_batch_example.yaml- Batch processing with staggered startstest_offset_example.json- Offset-based timingsimple_trigger_test.json- Basic trigger testingsimple_on_test.json- Simple trigger conditions
code_execution_example.yaml- Python code execution in stepssimplified_code_example.yaml- Simplified code executionvariable_substitution_example.yaml- Variable substitution in code
optimal_duration_example.yaml- Optimal duration calculationstest_flex_auto_plan.json- Flexible auto-planning featurescomprehensive_example.json- Comprehensive feature demonstrationcomprehensive_manual_demo.json- Manual control demonstrationmanual_controls_demo.json- Manual step controls
home-kitchen.json- Standard home kitchen with 2 cooksrestaurant.json- Restaurant environment
commercial-kitchen.json- Commercial kitchen with professional staffbakery.json- Bakery environmentartisan-bakery-detailed.json- Detailed artisan bakery setup
laboratory.json- Basic laboratory environmentbiotech-company-lab.json- Biotech company laboratorysmall-academic-lab.json- Small academic laboratorylarge_pharma_lab.json- Large pharmaceutical laboratory
airport.json- Airport operations environment
breakfast_schedule.json- Simple sequential cookingsimple_trigger_test.json- Basic triggerslab_experiment.json- Basic laboratory workflow
breakfast_with_buffers.json- Buffers and cleanupresource_contention_example.yaml- Resource managementkitchen_actors_example.json- Multiple actor types
academy_awards_ceremony.json- Complex event schedulingrat_psychopharmacology.json- Complex research protocolscomprehensive_example.json- All features combined
- Home kitchen examples
- Restaurant examples
- Commercial kitchen examples
- Bakery examples
- Academic lab examples
- Industry lab examples
- Research protocol examples
- Airport operations
- Event management
- Manufacturing processes
Most program examples validate successfully against the schema:
breakfast_schedule.json- β Validates correctlylab_experiment.json- β Validates correctlyrestaurant_breakfast.json- β Validates correctly- And many more...
The environment files in the environments/ directory have some validation issues:
- Missing required tasks for specific environment types
- Resource constraint mismatches
- These issues prevent some programs from running with environment references
- Start with validation: Use
rhylthyme validateto check program files - Focus on programs: Most program examples work well for learning
- Environment info: Use
rhylthyme environment-infoto learn about environment types - Fix environments: Environment files can be corrected to resolve validation issues
# Validate a single program
rhylthyme validate programs/breakfast_schedule.json
# Validate with verbose output
rhylthyme validate programs/breakfast_schedule.json --verbose# Note: Some programs may require properly configured environments
# The environment files in this repository may have validation issues
# Run with interactive UI (if environment is properly configured)
rhylthyme run programs/breakfast_schedule.json
# Run with automatic start (no manual trigger needed)
rhylthyme run programs/breakfast_schedule.json --auto-start
# Run with time scaling (2x faster)
rhylthyme run programs/breakfast_schedule.json --time-scale 2.0# Run without environment (uses embedded resource constraints)
rhylthyme run programs/breakfast_schedule.json
# Run with automatic start (no manual trigger needed)
rhylthyme run programs/breakfast_schedule.json --auto-start
# List available environments (if any are properly configured)
rhylthyme environments
# Get environment information for a specific type
rhylthyme environment-info kitchen
# Validate environment files (may show validation errors)
rhylthyme validate-environments --environments-dir environments# Create optimized version
rhylthyme plan programs/resource_contention_example.yaml optimized_program.json
# Run the optimized version
rhylthyme run optimized_program.json- β Sequential Steps - Basic step-by-step execution
- β Parallel Tracks - Multiple concurrent workflows
- β Resource Constraints - Limited resource management
- β Manual Triggers - Human-controlled step completion
- β Variable Durations - Flexible timing with min/max ranges
- β Buffer Times - Setup and cleanup periods
- β Code Execution - Python code in steps
- β Track Templates - Reusable track definitions
- β Environment References - External environment files
- β Fractional Resources - Partial resource usage
- β Batch Processing - Multiple iterations
- β Time Offsets - Delayed starts
- β Complex Triggers - Multiple trigger conditions
- β Actor Types - Different types of workers
- β Qualified Actors - Skill-based resource allocation
- β Resource Constraints - Equipment and space limits
- β Metadata - Additional environment information
To add new examples:
- Create your program file in the
programs/directory - Validate it using
rhylthyme validate your_program.json - Test it using
rhylthyme run your_program.json - Add documentation in this README
- Submit a pull request
- Use descriptive names that indicate the feature being demonstrated
- Include comments in the JSON/YAML for clarity
- Keep examples focused on specific features
- Ensure all examples validate successfully
- Test that examples run without errors
All examples conform to the Rhylthyme Schema version 0.1.0-alpha.
- rhylthyme-spec - Schema definitions and specifications
- rhylthyme-cli-runner - Command-line interface and runner
- rhylthyme-web - Web-based interface
Apache License 2.0