Coder Social home page Coder Social logo

aride / cdpp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simulationeverywhere/cdpp_extendedstates-codename-santi

0.0 0.0 0.0 343 KB

An extended and improved version of CD++ for Cell-DEVS

License: MIT License

C++ 87.58% Python 0.09% C 9.21% Makefile 1.85% Yacc 1.27%

cdpp's Introduction

CD++ - Extended States

An extended and improved version of CD++ for Cell-DEVS.

Getting Started

Download

The easiest way to get the source code is by cloning the git repository:

 $ git clone https://github.com/SimulationEverywhere/CDPP_ExtendedStates-codename-Santi.git 

Prerequisites

  • GCC 4.7 or higher (with C++11 support)
  • bison
  • GNU make

Compilation

In order to compile the simulator kernel, go to the directory where its source code is located and run make. For example,

 $ cd cdpp/src
 $ make

Upon finishing, the bin subdirectory will contain the executable file cd++. A static library containing core functionality of the simulator is also provided by default.

Examples

Simulation of a Cell-DEVS model

If you wish to simulate the model described by, say, file model.ma, execute:

 $ bin/cd++ -mmodel.ma

Simulation of an ad-hoc atomic model

For this we suggest to use as baseline the pulse example included in the project (see examples/pulse/src). In particular, it is important to include a Makefile defining, at least,

  • The KERNEL_SRC variable pointing to the directory where the cd++ source code is located.
  • The MODEL_FLAGS variable with value -DREGISTER_ATOMICS. This is to compile the code responsible for registering the desired atomic model into the simulator kernel.
  • The inclusion of definitions and compilation rules provided by the simulator:
    include $(KERNEL_SRC)/Makefile.rules
    include $(KERNEL_SRC)/Makefile.defs

It is also important to include an implementation of the function

void register_atomics_on(ParallelModelAdmin &admin)

whose purpose is to register into the kernel the atomic models that the user wants to use. In general, it is sufficient to include a line like the following:

admin.registerAtomic(NewAtomicFunction<ModelClass>(), "Model name");

Please see the aforementioned example included in the source code for further details.

Authors

Updated since 2017 by Discrete Event Simulation Lab, Facultad de Ciencias Exactas y Naturales, Universidad de Buenos Aires (see changelog).

License

This project is licensed under the MIT License - see the LICENSE file for details.

cdpp's People

Contributors

lukius avatar rodrigodcastro avatar thepalbi avatar epecker avatar juanlanuzag 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.