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:
elevator.ral and evman.txt
To get the above example copied into your current working directory use the -E (example) option.
% domaindb -E
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. It is probably named elevator_mmdb.ral
This *.ral file is produced by the modeldb command if you have the xuml-populate package installed.
Context
A scenario instance population *.sip file that you write yourself which specifies instances and current states to be populated into your domain database. This file defines a context that can be used in a variety of simulation scenarios in a downstream package currently under development called model execute.
Type Mapping
A yaml file that maps each domain type to a TclRAL system type.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mi_domain_populate-0.1.5.tar.gz.
File metadata
- Download URL: mi_domain_populate-0.1.5.tar.gz
- Upload date:
- Size: 42.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f429d320d694d37ece525c5be55b3d87fffd7c25fbef75a494a6209f48f8781
|
|
| MD5 |
09f628dfc95f1ee456c75797f669d416
|
|
| BLAKE2b-256 |
095aae7ee36dfecee71548b3e5d837031de5308e9a0defa437bcd61894dd83db
|
File details
Details for the file mi_domain_populate-0.1.5-py3-none-any.whl.
File metadata
- Download URL: mi_domain_populate-0.1.5-py3-none-any.whl
- Upload date:
- Size: 43.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40c4b650f56a7a7296439c5aa4366a6052de5f56ec6559a706f4400a821125c9
|
|
| MD5 |
e0ebfa6bc5defa134a5c7a5e0e5bdd94
|
|
| BLAKE2b-256 |
e5c63f74106212e27b08b941ad8d4d9529fdec808bf89b39db248f2d487ed015
|