|
1 | 1 | package aima.search.map; |
2 | 2 |
|
3 | 3 | /** |
4 | | - * The AIMA framework uses dynamic attributes to make implementations |
5 | | - * of agents and environments completely independent of each other. The |
6 | | - * disadvantage of this concept is, that it's error-prone. This set |
7 | | - * of constants is designed to make information exchange more reliable |
8 | | - * for map agents. Two kinds of attributes are distinguished. |
9 | | - * Percept attributes are attached to percepts. |
10 | | - * They are generated by the environment and read by by the agent. |
11 | | - * Agent attributes are attached to agents. They are also generated |
12 | | - * by the environment but the agents are not allowed to access them. |
| 4 | + * The AIMA framework uses dynamic attributes to make implementations of agents |
| 5 | + * and environments completely independent of each other. The disadvantage of |
| 6 | + * this concept is, that it's error-prone. This set of constants is designed to |
| 7 | + * make information exchange more reliable for map agents. Two kinds of |
| 8 | + * attributes are distinguished. Percept attributes are attached to percepts. |
| 9 | + * They are generated by the environment and read by by the agent. Agent |
| 10 | + * attributes are attached to agents. They are also generated by the environment |
| 11 | + * but the agents are not allowed to access them. |
| 12 | + * |
13 | 13 | * @author R. Lunde |
14 | 14 | */ |
15 | 15 | public class DynAttributeNames { |
16 | 16 | /** |
17 | | - * Name of a dynamic attribute, which contains the current |
18 | | - * location of the agent. To be compatible with |
19 | | - * {@code aima.search.map.MapEnvironment} it is advisable, |
20 | | - * not to change the value. |
| 17 | + * Name of a dynamic attribute, which contains the current location of the |
| 18 | + * agent. |
21 | 19 | */ |
22 | 20 | public static final String AGENT_LOCATION = "location"; |
23 | 21 | /** |
24 | | - * Name of a dynamic attribute, which maintains the total |
25 | | - * traveling distance of the agent since birth. |
26 | | - * Should be of type Integer. |
| 22 | + * Name of a dynamic attribute, which maintains the total traveling distance |
| 23 | + * of the agent since birth. Should be of type Integer. |
27 | 24 | */ |
28 | 25 | public static final String AGENT_TRAVEL_DISTANCE = "travelDistance"; |
29 | 26 | /** |
30 | | - * Name of a dynamic attribute, which indicates the current |
31 | | - * status of the agent, such as traveling, completed or aborted. |
| 27 | + * Name of a dynamic attribute, which indicates the current status of the |
| 28 | + * agent, such as traveling, completed or aborted. |
32 | 29 | */ |
33 | 30 | public static final String AGENT_STATUS = "status"; |
34 | | - |
| 31 | + |
35 | 32 | /** |
36 | 33 | * Name of a dynamic attribute, which tells the agent where it is. |
37 | | - * To be compatible with |
38 | | - * {@code aima.search.map.MapEnvironment#STATE_IN} |
39 | | - * it is advisable not to change the value. |
40 | | - */ |
| 34 | + */ |
41 | 35 | public static final String PERCEPT_IN = "In"; |
42 | 36 | /** |
43 | | - * Name of a dynamic attribute, which tells the agent which |
44 | | - * actions are possible at the current location of the agent. |
| 37 | + * Name of a dynamic attribute, which tells the agent which actions are |
| 38 | + * possible at the current location of the agent. |
45 | 39 | */ |
46 | 40 | public static final String PERCEPT_POSSIBLE_ACTIONS = "Signpost"; |
47 | 41 | /** |
48 | | - * Name of a dynamic attribute. It provides access to |
49 | | - * informations which are available at the current location |
50 | | - * of the agent. |
| 42 | + * Name of a dynamic attribute. It provides access to informations which are |
| 43 | + * available at the current location of the agent. |
51 | 44 | */ |
52 | 45 | public static final String PERCEPT_INFOS = "Infos"; |
53 | 46 | /** |
54 | | - * Name of a dynamic attribute. It provides access to objects, |
55 | | - * which are visible at the current location of the agent. |
| 47 | + * Name of a dynamic attribute. It provides access to objects, which are |
| 48 | + * visible at the current location of the agent. |
56 | 49 | */ |
57 | 50 | public static final String PERCEPT_OBJECTS = "Objects"; |
58 | 51 | } |
0 commit comments