Coder Social home page Coder Social logo

lts's Introduction

LTS

standard ci.yml

Templated implementation of a Labelled Transition System class, with the three following template parameters:

  • StateT: the type of the state (defaults to std::string)
  • TransitionT: the type of transitions (defaults to std::string)
  • HashF: the hash function that is used when storing the state type in the underlying unordered_map container. Defaults to std::hash<StateT>.

Adding custom types

To use this library with custom data types for states and transitions, the following should be done:

  • Provide template specialization for std::hash<CustomType>, or specify another hash function in the 3rd optional parameter of the LTS template list
  • For state parsing from strings, add a template specialization for ParseStateString.
  • For transition parsing from strings, add a template specialization for ParseTransitionString.
  • For outputting states and transitions, simply uses std::ostream& for console and std::ofstream& for files (GraphViz) for the data type.

Build instructions

Requirements

  • CMake (>=3.22)
  • Git (for submodule cloning)
  • C++20 compiler

Cloning & updating

Clone the repository alongside its submodules (shallow submodule cloning is optional).

git clone --recurse-submodules --shallow-submodules https://github.com/nightly/lts

In case submodules have not been cloned, the following command can be run:

git submodule update --init --recursive

Acknowledgements

This work was supported by the SURE projects fund of the University of Bradford.

lts's People

Contributors

nightly avatar

Stargazers

 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.