Commit b7015db8 authored by Anthony Noir's avatar Anthony Noir
Browse files

transitionrule

parent 2fe101c3
......@@ -5,3 +5,6 @@ CONFIG += ordered
SUBDIRS += \
src \
tests
HEADERS += \
include/transitionrule.hpp
/**
\file transitionrule.hpp
\brief TransitionRule
Cette classe représente une règle de transition.
**/
#ifndef TRANSITIONRULE_HPP
#define TRANSITIONRULE_HPP
#include <vector>
#include "coord.hpp"
#include "neighborhood.hpp"
struct NeighborhoodFormat;
class TransitionRule {
private:
public:
TransitionRule();
virtual ~TransitionRule();
//! \brief Vérifie que les formats de voisinage proposés sont compatibles
//! \param Vector des NeighborhoodFormat à vérifier
//! \return vrai si compatible, faux sinon
virtual bool acceptFormat(const std::vector<NeighborhoodFormat>&) const =0;
//! \brief Effectue la transition
//! \param Etat de la cellule courante
//! \param Voisinage de la cellule
//! \return Nouvel état de la cellule
virtual unsigned int getState(unsigned int, const Neighborhood&) const =0;
};
#endif // TRANSITIONRULE_HPP
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment