Skip to content

Migrate to the redesigned Elan8 libraries - #18

Closed
jevontech wants to merge 1 commit into
mainfrom
migrate-library-redesign
Closed

jevontech wants to merge 1 commit into
mainfrom
migrate-library-redesign

Conversation

@jevontech

Copy link
Copy Markdown
Contributor

Migrates the model to the redesigned domain libraries (elan8/sysml-domain-libraries#5, the implementation of the design in #4).

Changes

  • Firmware. FirmwareArchitecture imports Elan8::Software. Firmware tasks specialise Task, PeriodicTask and EventDrivenTask, and the scheduler is an ExecutionPlatform with its scheduling policy and tick period. Queues are unchanged: SoftwareQueue with its discipline.
  • Robot roles. The library now names kinds of component only, so the robot defines its own roles in RobotSensing (99_library):
    • BumperSwitch and LiftSwitch specialise SwitchSensor;
    • the homing beacon specialises the generic infrared transmitter, receiver, signal and port, and keeps its beacon port name, so the context and physical architecture connect as before.
  • CI pins:
    • DOMAIN_LIBRARIES_REF points at the library PR's commit (f7984a7). Re-pin it to the merge commit once Implement the library design sysml-domain-libraries#5 merges, before merging this PR.
    • SPEC42_VERSION moves to 0.55.0, which models the library's keyword declarations.
  • Docs. MODEL_GUIDE, README and VALIDATION reflect the new packages and versions.

Checks

Run with Spec42 0.55.0 against the library branch:

  • Spec42: spec42 check model --warnings-as-errors gives 0 errors and 0 warnings. The 16 information diagnostics are the allowed view_expose_empty ones on document containers.
  • Generated document data: generate-document-data.py --check reports the generated document data unchanged.

🤖 Generated with Claude Code

elan8/sysml-domain-libraries#5 rebuilds the software library and moves
application roles out of the electronics library.

- FirmwareArchitecture imports Elan8::Software: firmware tasks specialise
  Task, PeriodicTask and EventDrivenTask, and the scheduler is an
  ExecutionPlatform with its policy and tick period.
- RobotSensing (99_library) defines the robot's roles of the generic
  kinds: BumperSwitch and LiftSwitch specialise SwitchSensor, and the
  homing beacon specialises the infrared transmitter, receiver, signal and
  port, keeping its `beacon` port name.
- CI pins the library PR's commit (to re-pin once it merges) and Spec42
  0.55.0, which models the library's keyword declarations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jevontech jevontech closed this Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant