Skip to main content

Analyze software requirements in AECO industry

Project description

https://travis-ci.com/mristin/rasaeco.svg?branch=master

RASAECO (“Requirements Analysis for Software in AECO Industry”) is a tool we developed within the BIMprove Project to help us analyze the software requirements after the finished elicitation phase.

Since the tool is still work-in-progress, we do not document yet how to write the scenarios. Please consult sample_scenarios for examples.

Installation

Please download and unzip the latest release from the GitHub release page.

Usage

Start your native Windows command prompt.

(Please be careful not to start “Developer Command Prompt for VS 2019” or similar as it includes a 32bit version of Python3 in its environment!)

Change to the directory where you unzipped the release.

Render once

Render the scenarios in-place once:

pyrasaeco-render.exe once --scenarios_dir c:\some\path\to\scenarios

(Change c:\some\path\to\scenarios to fit your system.)

Open the scenario ontology with your browser from: c:\some\path\to\scenarios\ontology.html.

(Don’t forget to change c:\some\path\to\scenarios again to fit your system.)

Render continuously

Monitor the scenario files and re-render on changes:

pyrasaeco-render.exe continuously --scenarios_dir c:\some\path\to\scenarios

(Change c:\some\path\to\scenarios to fit your system.)

Open the scenario ontology with your browser from: c:\some\path\to\scenarios\ontology.html.

(Don’t forget to change c:\some\path\to\scenarios again to fit your system.)

Render continuously + automatic refresh

pyrasaeco-render can also start a demo server for you so that you do not have to manually re-load in the browser. You have to specify the port and the server will be automatically started:

pyrasaeco-render.exe continuously
    --scenarios_dir c:\some\path\to\scenarios
    --port 8000

(Change c:\some\path\to\scenarios to fit your system.)

The ontology will be available on: http://localhost:8000.

Help

pyrasaeco-render.exe -h
pyrasaeco-render.exe once -h
pyrasaeco-render.exe continuously -h

Cheatsheet

Directory Structure

Write documents in the following directory structure:

ontology/
    some-scenario/
        scenario.md
    some-group/
        another-scenario/
            scenario.md
        yet-another-scenario/
            scenario.md
...

The identifier of a scenarios is given by the POSIX path of the scenario directory relative to the ontology directory.

For example, some-scenario and some-group/another-scenario.

Tags in the Scenario

Tag text in markdown with XML tags.

Models. Models are defined as <model name="...">...</model>.

Model references are written using <modelref> tag:

The possible placements for the reception platform should be computed based on
the <modelref name="observed/main" />.

It is also possible to reference models from another scenario by writing the scenario identifier, followed by # and the model name:

This is a dummy reference to the model <modelref name="scaffolding#plan/main" />.

Definitions. Definitions are defined <def name="...">...</def>.

If you want to write (pseudo)code in the definition, use ``` (three backticks):

<def name="reception_platform">

```bim
reception_platform
    is IfcBuildingElementType modeled in observed/main
    with .ElementType == "ReceptionPlatform"
```

</def>

In general, give the name using singular form, snake_case and lower-case. For example, reception_platform.

Definition references are written using <ref> tag:

The <ref name="reception_platform" /> can not be appropriately fixed.

It is also possible to reference models from another scenario by writing the scenario identifier, followed by # and the definition name:

This is a dummy reference to the definition <ref name="scaffolding#scaffold" />.

We apply a couple of text transformations during rendering to improve the readability. The underscores in the references are replaced with spaces. If the reference is followed by an “s”, it will be automatically inflected to a plural.

For example,

The <ref name="misplaced_scaffold" />s are ...

will be rendered to:

The misplaced scaffolds are ...

Marking phase and level. Use <phase> and <level> to mark the phase in the building life cycle and hierarchy level of detail, respectively.

<phase name="planning">During the planning phase, the <ref name="scaffolds" />
are wrongly planed.</phase>

<phase name="construction">The <ref name="receptionPlatforms" /> can not be appropriately fixed
on <level name="site">the site</level>.</phase>

Test cases. Test cases are marked using <test name="...">...</test>. You can reference the individual tests using <testref name="..." />.

Analogous to <ref> and <modelref>, references to test cases extend across scenarios.

Acceptance criteria. Acceptance criteria are marked using <acceptance name="...">...</test>. You can reference the individual acceptance criteria using <acceptanceref name="..." />.

Analogous to <ref> and <modelref>, references to acceptance criteria extend across scenarios.

Further Examples

Please see Sample scenarios for further examples.

Known Issues

Markdown can be sometimes unintuitive when mixed with the mark-up (XML) tags. You have to be careful when inserting new lines as they are going to be automatically converted by marko library to <p>.

This can result in invalid HTML. For example, make sure you do not write:

<model name="something">first line

second line</model>

as this results in invalid HTML:

<p><model name="something">first line</p>
<p>second line</model></p>

Note the inverted </p> and </model>. This should be correctly written as:

<model name="something">

first line

second line

</model>

(Note the empty lines after the opening tag and before the closing tag, respectively.)

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

rasaeco-0.0.8.tar.gz (24.2 kB view details)

Uploaded Source

File details

Details for the file rasaeco-0.0.8.tar.gz.

File metadata

  • Download URL: rasaeco-0.0.8.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

File hashes

Hashes for rasaeco-0.0.8.tar.gz
Algorithm Hash digest
SHA256 361d6b89a13cb53e881efc4553184ef64a9fc3439ab9e41ee3e636e5b842d0f8
MD5 e14fc8fd795b63e7de58818dcf409f69
BLAKE2b-256 4c8bcef81581c2c073f42f055c36fed807f6a156b9aa0fafe4c6e7637ad2b2e7

See more details on using hashes here.

Supported by

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