score.h 641 Bytes
Newer Older
Mac Newbold's avatar
Mac Newbold committed
1 2 3 4 5 6 7 8 9 10

#ifndef _SCORE_H
#define _SCORE_H

typedef struct {
  int unassigned;
  int pnode_load;
  int no_connection;
  int link_users;
  int bandwidth;
11
  int desires;
12
  int vclass;
13 14 15 16
  int delay;
#ifdef FIX_PLINK_ENDPOINTS
  int incorrect_endpoints;
#endif
Mac Newbold's avatar
Mac Newbold committed
17 18
} violated_info;

19
extern double score;
Mac Newbold's avatar
Mac Newbold committed
20 21
extern int violated;
extern violated_info vinfo;
22
extern bool allow_trivial_links;
Mac Newbold's avatar
Mac Newbold committed
23 24

void init_score();
25 26 27
void remove_node(vvertex vv);
int add_node(vvertex vv,pvertex pv,bool deterministic);
double get_score();
Christopher Alfeld's avatar
 
Christopher Alfeld committed
28
double fd_score(tb_vnode &vnoder,tb_pnode &pnoder,int *fd_violated);
29 30
pvertex make_lan_node(vvertex vv);
void delete_lan_node(pvertex pv);
Mac Newbold's avatar
Mac Newbold committed
31 32

#endif