Giter Site home page Giter Site logo

framework's Introduction

framework

Build Status

Basic and minimalistic framework for running simulations written in C++14. Simulation is defined as modules that are executed in a specific order. Each full execution of the modules is called an event. The total simulation is the result of executing a specified number of events.

Usage

framework [-v] configuration_file.conf

Where the configuration file is a basic config file that shall state the following:

  1. number_of_events Number of events in simulation.
  2. modules Modules to include in order. Can be -case sensitive names: Module1, Module2, Module3, Module4, Module5
  3. number_of_threads Optional number of threads to use. The -v option can be used to print execution time.
  4. initial_seed Optional initial seed for the main random number generator.

Examples

Sample configuration files and their respective output in the directory examples. There are 3 samples and they are as follows:

  1. example.conf: This is a basic example that loads 5 modules and execute 10 simulation events.
  2. example_initial_seed.conf: This example shows how to set the initial seed to reproduce the simulation result. By default the seed used to initialize the underlying random number generator is printed at the beginning of the execution for reference.
  3. example_multithread.conf: This example shows how to use multiple threads to execute the simulation. This option can significantly reduce execution time.

Building

The project uses cmake to generate build files. Please follow the following steps to build the framework using Unix Makefiles.

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

To execute the tests you can use the following command after building the framework:

make test

Structure

The repository is structured into 3 directories as follows:

  1. src: contains all source code of the framework.
  2. examples: contains a set of configuration files examples.
  3. tests: contains automated functionality tests and also performance tests and benchmarking scripts.
  4. docs: contains a complete guide for the framework.

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.