Skip to main content

Creates and populates a TclRAL database for a modeled domain

Project description

Blueprint Domain Populator

Create a separate TclRAL domain database for each Domain in your System.

Let's say you have modeled an Elevator System with Elevator Management, Transport, and Signal IO domains.

You use the Blueprint Domain Populator to create three TclRAL databases, each populated with whatever initial instance populations you have defined in a supplied context.

Installation

% pip install mi-domain-populate

This creates an executable command named domaindb

Type domaindb -help to get the complete and most up to date list of supported options.

Usage

This package takes three inputs, a system populated into the metamodel database, a context specifying initial instance populates, and a map from domain to system data types.

Command usage

% domaindb -s mmdb_elevator.ral -c EVMAN_one_bank1.sip -t EVMAN_types.yaml -o

Here -s is the system, -c is the context, and -t specifies the mapping of domain types to available system data types which currently are TclRAL types. If you use the optional -o option, a separate <domain alias>.txt file will be generated for each domain database. For the above command you should see these files generated:

EVMAN.ral and evman.txt

These are both, in fact, text files. But the *.ral file is readable by TclRAL and fairly incomprehensible to a human. The *.txt file, on the other hand, is easy to read and is only intended for human consumption. (That's why the name is lowercase).

To get the above example copied into your current working directory use the -E (example) option.

% domaindb -E

At his point we are only working with (and have only tested) a system with a single domain. That said, a minor extension to the sip file format will make it possible to work with multiple domains. Will update this readme file when it's ready.

System

This is a metamodel TclRAL database (*.ral) file populated with a user's domain model: the Elevator Management domain populated into the Shlaer-Mellor metamodel, for example.

This is the mmdb_elevator.ral file in our example. The naming convention has the database left of the underscore and the content to the right. Thus, the metamodel database (mmdb) is populated with the elevator system.

This *.ral file is produced by the modeldb command if you have the xuml-populate package installed.

Context

Context is expressed as a set of initial instances and states in a scenario instance population *.sip file. The domaindb command doesn't do anything with the initial states -- those are handled in a downstream command yet to be published.

Write the scenario instance population *.sip file yourself using the example EVMAN_one_bank1.sip file as a guide.

Type Mapping

A *.yaml file that maps each domain type to a TclRAL system type. There's one in the supplied example to use as a guide.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mi_domain_populate-0.1.7.tar.gz (43.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mi_domain_populate-0.1.7-py3-none-any.whl (44.3 kB view details)

Uploaded Python 3

File details

Details for the file mi_domain_populate-0.1.7.tar.gz.

File metadata

  • Download URL: mi_domain_populate-0.1.7.tar.gz
  • Upload date:
  • Size: 43.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for mi_domain_populate-0.1.7.tar.gz
Algorithm Hash digest
SHA256 4c105c1269d17275dba208d9093d860ad5d30f8d380612fa3e3eba6ed5606578
MD5 ffb32cdb692786845569bf4bec9673d0
BLAKE2b-256 48ce7aeca08674ad847c66a8cdb6d0c36b9a16989dfd5c4507a16f71fd8e5ce6

See more details on using hashes here.

File details

Details for the file mi_domain_populate-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for mi_domain_populate-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 130aebfabfdbaf58f94e653fdf419d07aa36d53a20bbb1ba3d6f8e3f87a5fc81
MD5 bbb7c32633046a60af6fd13d8b9e913c
BLAKE2b-256 b7bb6e7da331c20cbf14e4fc45fad449cb71a13490c40f5eeb44d458adb1b034

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page