Giter Club home page Giter Club logo

timedreb2erl's Introduction

This document describes how to get the timedreb2erl tool up and running.

Follow the rest of this document in order to produce an executable file.

All commands should be executed from the project root, i.e. the directory this README file lies in.

Requirements

  • GHC >= 6.12
  • cabal >= 1.8
  • McErlang

McErlang is required to be able to simulate the generated Erlang code.

Install

cabal install

And now we have a fresh binary timedreb2erl in our cabal bin directory.

Usage

Given a timed rebeca model, we can generate Erlang source code for the model such that we can simulate it with McErlang.

timedreb2erl [OPTIONS] FILE

Common flags:
  -s --simulate        
  -m --monitor         
  -r --rtfactor=INT    
  -o --outputdir=FOLDER
  -? --help              Display help message
  -V --version           Print version information

If no outputdir is specified the resulting Erlang code is printed to stdout.

The simulate flag outputs code that can be run with McErlang. If it is omitted, then refined Erlang code is outputted.

The rtfactor flag specifies what time units are in the generated code (in milliseconds). Default 1000.

The monitor flag has no effect unless outputdir is used.

timedreb2erl's People

Contributors

arnihermann avatar

Stargazers

Brynjar Magnússon avatar  avatar Haukur Kristinsson avatar Skúli Arnlaugsson avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.