source: src/main/java/genius/core/boaframework/SharedAgentState.java

Last change on this file was 127, checked in by Wouter Pasman, 6 years ago

#41 ROLL BACK of rev.126 . So this version is equal to rev. 125

File size: 958 bytes
Line 
1package genius.core.boaframework;
2
3/**
4 * When decoupling existing agents into their separate components, it often happens
5 * that a component loosely depends on another component; for example an acceptance condition
6 * can depend on a target utility calculated by the offering strategy.
7 *
8 * To avoid code duplication a Shared Agent State class can be introduced containing the shared
9 * code. In this case one of the components calculates the required data, while the other simply
10 * requests the stored result.
11 *
12 * Note that the only requirement by this class is the implementation of the name. The name
13 * should be used to verify that the component which calculates (a part of) the results is
14 * available.
15 *
16 * @author Alex Dirkzwager, Mark Hendrikx
17 */
18public abstract class SharedAgentState {
19
20 protected String NAME;
21
22 /**
23 * @return name of the SAS component.
24 */
25 public String getName() {
26 return NAME;
27 }
28}
Note: See TracBrowser for help on using the repository browser.