1
2
3
4
5
6
7 package yawn.nn.committee;
8
9 import yawn.config.ConfigElement;
10 import yawn.config.NeuralNetworkConfig;
11
12 /***
13 * This is yawn.nn.committee.ComitteElement, part of the yawn project.
14 *
15 * <p>$Id: CommitteeElement.java,v 1.5 2005/05/09 11:04:54 supermarti Exp $</p>
16 *
17 * @author Luis Martí (luis dot marti at uc3m dot es)
18 * @version $Revision: 1.5 $
19 */
20 public class CommitteeElement extends ConfigElement {
21
22 /***
23 *
24 * @uml.property name="networkConfig"
25 * @uml.associationEnd multiplicity="(0 1)"
26 */
27 protected NeuralNetworkConfig networkConfig;
28
29 /***
30 *
31 * @uml.property name="amount"
32 */
33 protected int amount;
34
35 /***
36 * @return Returns the amount.
37 *
38 * @uml.property name="amount"
39 */
40 public int getAmount() {
41 return amount;
42 }
43
44 /***
45 * @param amount
46 * The amount to set.
47 *
48 * @uml.property name="amount"
49 */
50 public void setAmount(int amount) {
51 this.amount = amount;
52 }
53
54 /***
55 * @return Returns the networkConfig.
56 *
57 * @uml.property name="networkConfig"
58 */
59 public NeuralNetworkConfig getNetworkConfig() {
60 return networkConfig;
61 }
62
63 /***
64 * @param model
65 * The networkConfig to set.
66 *
67 * @uml.property name="networkConfig"
68 */
69 public void setNetworkConfig(NeuralNetworkConfig model) {
70 this.networkConfig = model;
71 }
72
73 /***
74 *
75 */
76 public CommitteeElement() {
77 super();
78 }
79
80 public String toString() {
81 return CommitteeElement.class + ": [ conf=" + getNetworkConfig() + "; amount="
82 + getAmount() + "]";
83 }
84 }