blob: 76ebb12faffa31311ddd09d173723ed2b75fc3f0 (
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
|
#ifndef _FLY_HPP_
#define _FLY_HPP_
#include "network.hpp"
class KNFly : public Network {
int _k;
int _n;
void _ComputeSize( const Configuration &config );
void _BuildNet( const Configuration &config );
int _OutChannel( int stage, int addr, int port ) const;
int _InChannel( int stage, int addr, int port ) const;
public:
KNFly( const Configuration &config );
int GetN( ) const;
int GetK( ) const;
double Capacity( ) const;
};
#endif
|