-
Notifications
You must be signed in to change notification settings - Fork 0
/
scenario3.mas2j
51 lines (36 loc) · 1.6 KB
/
scenario3.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
MAS planetary_rover_miners {
infrastructure:
Centralised
environment:
/*
NOTE ON CONFIGURING THE ENVIRONMENT
required parameters:
- mas2j_file - the name of this file
- scenario_file - the json file to load for the environment
- discovery_type - important for scenarios where agents are allowed to see each other
*/
rover.RoverWorld(
"mas2j_file=scenario3.mas2j",
"scenario_file=scenarios/3/map3_dynamic.json",
"discovery_type=none")
agents:
/*
NOTE ON DEFINING AGENTS
parameters:
capacity (REQUIRED)
scan_range (REQUIRED)
resource_type (OPTIONAL: "Gold", or "Diamond")
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: The group an agent belongs to. Can be set to 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 differentiate them in advanced and/or competitive scenarios.
*/
gold miner_s3 [ capacity=6, scan_range=0, resource_type="Gold", group=1, mindinspector="gui(cycle,html,history)"]; // orange
diamond miner_s3 [ capacity=6, scan_range=0, resource_type="Diamond", group=2, mindinspector="gui(cycle,html,history)"]; // pink
scan scanner_s3 [ capacity=0, scan_range=6, group=4, mindinspector="gui(cycle,html,history)"] #2; // green
aslSourcePath:
"src/asl";
}