-
Notifications
You must be signed in to change notification settings - Fork 0
/
VertexGroup.h
41 lines (34 loc) · 1010 Bytes
/
VertexGroup.h
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
34
35
36
37
38
39
40
/*
* File: VertexGroup.h
* Author: RM
*
* Created on 26. Juli 2013, 23:26
*/
#ifndef VERTEXGROUP_H
#define VERTEXGROUP_H
#include "Definitions.h"
#include "Graph.h"
class VertexGroup
{
public:
VertexGroup(uint firstIndex, uint lastIndex, float lowerLimit, float upperLimit, float groupOffer);
VertexGroup(const VertexGroup& orig);
VertexGroup();
virtual ~VertexGroup();
uint& firstIndex();
uint& lastIndex();
float& upperLimit();
float& lowerLimit();
float& offer();
float getOffer() const;
uint getMemberCount() const;
private:
// After calculating their myopic prices, vertices are arranged accordingly -
// therefore the vertices of each group are confined inside a limited region.
uint _firstIndex;
uint _lastIndex;
float _upperLimit;
float _lowerLimit;
float _offer;
} ;
#endif /* VERTEXGROUP_H */