-
Notifications
You must be signed in to change notification settings - Fork 0
/
scenario4.mas2j
67 lines (48 loc) · 2.14 KB
/
scenario4.mas2j
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
MAS ia_submission {
infrastructure:
Centralised
environment:
/*
NOTE ON CONFIGURING THE ENVIRONMENT
required parameters:
- mas2j_file
- scenario_file
- discovery_type
mas2j_file: This must be the name of the current mas2j_file
so for intro_scenario.mas2j, the value of mas2j_file must be
intro_scenario.mas2j
WE HAVE DONE THIS FOR ALL THE MAS2J FILES INCLIDED
scenario_file: This is the name of the scenario file you want to run
ALL GRADED SCENARIOS HAVE BEEN LABELLED AND PLACED IN THEIR RESPECTIVE MAS2J FILES
Though you may want to try out custom maps, just remember to set the name to the
scenario file you wish to run
discovery_type: DO NOT CHANGE THIS.
THIS IS IMPORTANT FOR SCENARIOS WHERE AGENTS ARE ALLOWED TO SEE EACH OTHER
*/
rover.RoverWorld(
"mas2j_file=scenario4.mas2j",
"scenario_file=scenarios/4/map4_dynamic.json",
"discovery_type=none")
agents:
/*
NOTE ON DEFINING AGENTS
parameters:
capacity (REQUIRED)
scan_range (REQUIRED)
resource_type (SET TO FIRST RESCOURCE COLLECTED IF NOT SPECIFIED)
group (REQUIRED)
capacity: max no. of resources your agent can carry. This can not be changed at run time.
scan_range: max radius at which an agent can scan its grid. This can not be changed at run time.
resource_type: resource an agent can collect. Can not be changed once set
group: A group an agent belogs to. can be any value from 0 to 6. That is 0,1,2,3,4,5 and 6
This can be used to assign a different colour to agents to aid debugging and also to differntiate
them in advanced scenarios.
*/
/**** ADD YOUR AGENT(S) HERE *****/
agentScanner [ capacity =0, scan_range=6, group=1];//, mindinspector="gui(cycle,html,history)"];
agentScannerv2 [ capacity =0, scan_range=6, group=1];//, mindinspector="gui(cycle,html,history)"];
agentCollectorGoldExtra [ capacity =6, scan_range=0, group=2];//, mindinspector="gui(cycle,html,history)"];
agentCollectorDiamondExtra [ capacity =6, scan_range=0, group=3];//, mindinspector="gui(cycle,html,history)"];
aslSourcePath:
"src/asl";
}