forked from donbasta/bus-queue-simulation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimlib.h
More file actions
41 lines (35 loc) · 1.32 KB
/
simlib.h
File metadata and controls
41 lines (35 loc) · 1.32 KB
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
41
/* This is simlib.h. */
/* Include files. */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "simlibdefs.h"
/* Declare simlib global variables. */
extern int *list_rank, *list_size, next_event_type, maxatr, maxlist;
extern double *transfer, sim_time, prob_distrib[26];
extern struct master
{
double *value;
struct master *pr;
struct master *sr;
} **head, **tail;
/* Declare simlib functions. */
extern void init_simlib (void);
extern void list_file (int option, int list);
extern void list_remove (int option, int list);
extern void timing (void);
extern void event_schedule (double time_of_event, int type_of_event);
extern int event_cancel (int event_type);
extern double sampst (double value, int varibl);
extern double timest (double value, int varibl);
extern double filest (int list);
extern void out_sampst (FILE * unit, int lowvar, int highvar);
extern void out_timest (FILE * unit, int lowvar, int highvar);
extern void out_filest (FILE * unit, int lowlist, int highlist);
extern double expon (double mean, int stream);
extern int random_integer (double prob_distrib[], int stream);
extern double uniform (double a, double b, int stream);
extern double erlang (int m, double mean, int stream);
extern double lcgrand (int stream);
extern void lcgrandst (long zset, int stream);
extern long lcgrandgt (int stream);