-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
34 lines (34 loc) · 1.21 KB
/
config.py
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
class Config:
INITIAL_RANGE = 1 # Initial radio range of an FLS in display cells
MAX_RANGE = 2000 # Maximum radio range of an FLS
DROP_PROB_SENDER = 0 # Probability of a sender dropping packets
DROP_PROB_RECEIVER = 0 # Probability of a receiver dropping packets
DEAD_RECKONING_ANGLE = 0
ACCELERATION = 6
DECELERATION = 6
MAX_SPEED = 6
DISPLAY_CELL_SIZE = 0.05
BUSY_WAITING = False
SAMPLE_SIZE = 0
DURATION = 600
READ_FROM_NPY = 0
G = 3 # Group size
SHAPE = 'outring' # Shape used for forming groups
RESULTS_PATH = 'results'
DEBUG = False
FILE_NAME_KEYS = ['G'] # list of properties that should be used in the name of results file names
DIR_KEYS = ['H'] # list of properties that should be used in the name of results directory
SERVER_TIMEOUT = 120
PROCESS_JOIN_TIMEOUT = 120
NUM_DISPATCHERS = 1
MULTICAST = True
TIMELINE_LOG = False
OPT_SORT = True
TEST_ENABLED = True
NUMBER_OF_FLSS = 12
R = 10 # ratio of r2 to r1
H = "canf" # valid values for heuristic: simpler, canf, vns, rs
VNS_TIMEOUT = 0.1
EXPANSION_TIMEOUT = 0.05
ETA = G - 1 # initial eta only effective for h:1 and h:rs
ETA_STR = "k-1"