blob: 5aba886197b1411b8ac7189c059edc0802a0eb47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef _KNCUBE_HPP_
#define _KNCUBE_HPP_
#include "network.hpp"
class KNCube : public Network {
bool _mesh;
int _k;
int _n;
void _ComputeSize( const Configuration &config );
void _BuildNet( const Configuration &config );
int _LeftChannel( int node, int dim );
int _RightChannel( int node, int dim );
int _LeftNode( int node, int dim );
int _RightNode( int node, int dim );
public:
KNCube( const Configuration &config, bool mesh );
int GetN( ) const;
int GetK( ) const;
double Capacity( ) const;
void InsertRandomFaults( const Configuration &config );
};
#endif
|