Marmote Core
The project aims at realizing the prototype of a software environment dedicated to modeling with Markov chains.
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Set
marmoteInterval.h
1
/* Marmote is free software: you can redistribute it and/or modify
2
it under the terms of the GNU General Public License as published by
3
the Free Software Foundation, either version 3 of the License, or
4
(at your option) any later version.
5
6
Marmote is distributed in the hope that it will be useful,
7
but WITHOUT ANY WARRANTY; without even the implied warranty of
8
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9
GNU General Public License for more details.
10
11
You should have received a copy of the GNU General Public License
12
along with Marmote. If not, see <http://www.gnu.org/licenses/>.
13
14
Copyright 2015 Alain Jean-Marie, Jean-Michel Fourneau, Jean-Marc Vincent, Issam Rabhi */
15
16
/* marmoteInterval.h ---
17
*
18
* Author: Alain Jean-Marie
19
*/
20
21
/* Commentary:
22
*
23
*/
24
25
/* Change log:
26
*
27
*/
28
29
30
#ifndef MARMOTEINTERVAL_H
31
#define MARMOTEINTERVAL_H
32
#include "marmoteSet.h"
33
38
class
marmoteInterval
:
marmoteSet
{
39
40
protected
:
41
int
_min
;
42
int
_max
;
44
public
:
52
marmoteInterval
(
int
min,
int
max );
53
54
public
:
60
bool
isFinite
() {
return
true
; };
61
bool
isZero(
int
* buffer);
66
void
firstState
(
int
* buffer);
70
void
nextState
(
int
*buffer);
74
void
decodeState
(
int
index
,
int
* buf);
78
int
index
(
int
* buf);
82
void
printState
(FILE* out,
int
*buffer);
83
84
public
:
89
void
enumerate
();
90
91
};
92
93
#endif // MARMOTEINTERVAL_H
Generated on Thu May 21 2015 17:06:41 for Marmote Core by
1.8.3.1