View Javadoc

1   package yawn.io;
2   
3   import yawn.config.NeuralNetworkConfig;
4   import yawn.envs.Environment;
5   
6   /***
7    * Stores the information about learning methods and test environments
8    * configurations.
9    * 
10   * <p>$Id: Experiment.java,v 1.5 2005/05/09 11:04:55 supermarti Exp $</p>
11   * 
12   * @author Luis Mart&iacute; (luis dot marti at uc3m dot es)
13   * @version $Revision: 1.5 $
14   */
15  public class Experiment {
16  
17  	/***
18  	 * 
19  	 * @uml.property name="neuralNetwork"
20  	 * @uml.associationEnd multiplicity="(0 1)"
21  	 */
22  	protected NeuralNetworkConfig neuralNetwork;
23  
24  	/***
25  	 * 
26  	 * @uml.property name="environment"
27  	 * @uml.associationEnd multiplicity="(0 1)"
28  	 */
29  	protected Environment environment;
30  
31  	/***
32  	 * 
33  	 * @uml.property name="context"
34  	 * @uml.associationEnd multiplicity="(0 1)"
35  	 */
36  	protected IStorage storage;
37  
38  
39      public Experiment() {
40      }
41  
42  	/***
43  	 * @return Returns the environment.
44  	 * 
45  	 * @uml.property name="environment"
46  	 */
47  	public Environment getEnvironment() {
48  		return this.environment;
49  	}
50  
51  	/***
52  	 * @param environment
53  	 *            The environment to set.
54  	 * 
55  	 * @uml.property name="environment"
56  	 */
57  	public void setEnvironment(Environment environment) {
58  		this.environment = environment;
59  	}
60  
61  	/***
62  	 * @return Returns the neuralNetwork.
63  	 * 
64  	 * @uml.property name="neuralNetwork"
65  	 */
66  	public NeuralNetworkConfig getNeuralNetwork() {
67  		return this.neuralNetwork;
68  	}
69  
70  	/***
71  	 * @param neuralNetwork
72  	 *            The neuralNetwork to set.
73  	 * 
74  	 * @uml.property name="neuralNetwork"
75  	 */
76  	public void setNeuralNetwork(NeuralNetworkConfig neuralNetwork) {
77  		this.neuralNetwork = neuralNetwork;
78  	}
79  
80      /***
81       * sets the <code>environment</code> property of the current neuralNetwork
82       * instance.
83       */
84      private void setupInternalWiring() {
85          if (environment != null) {
86              // environment;
87          }
88  
89          if (neuralNetwork != null) {
90              neuralNetwork.setEnvironment(environment);
91          }
92      }
93  	/***
94  	 * @return Returns the storage.
95  	 */
96  	public IStorage getStorage() {
97  		return storage;
98  	}
99  	/***
100 	 * @param storage The storage to set.
101 	 */
102 	public void setStorage(IStorage storage) {
103 		this.storage = storage;
104 	}
105 }