View Javadoc

1   /*
2    * Created on Oct 7, 2004
3    */
4   package yawn.nn.mlp;
5   
6   import yawn.config.ConfigElement;
7   import yawn.nn.committee.CommitteeElement;
8   
9   /***
10   * 
11   * <p>$Id: LayerElement.java,v 1.6 2005/05/09 11:04:54 supermarti Exp $</p>
12   * 
13   * @author Luis Mart&iacute; (luis dot marti at uc3m dot es)
14   * @version $Revision: 1.6 $
15   */
16  public class LayerElement extends ConfigElement {
17  
18  	/***
19  	 * 
20  	 * @uml.property name="size" 
21  	 */
22  	protected int size;
23  
24  	/***
25  	 * 
26  	 * @uml.property name="nodesClassName" 
27  	 */
28  	protected String nodesClassName;
29  
30  
31      public LayerElement() {
32          super();
33      }
34  
35  	/***
36  	 * @return Returns the nodesClassName.
37  	 * 
38  	 * @uml.property name="nodesClassName"
39  	 */
40  	public String getNodesClassName() {
41  		return nodesClassName;
42  	}
43  
44  	/***
45  	 * @param className
46  	 *            The nodesClassName to set.
47  	 * 
48  	 * @uml.property name="nodesClassName"
49  	 */
50  	public void setNodesClassName(String className) {
51  		this.nodesClassName = className;
52  	}
53  
54  	/***
55  	 * @return Returns the size.
56  	 * 
57  	 * @uml.property name="size"
58  	 */
59  	public int getSize() {
60  		return size;
61  	}
62  
63  	/***
64  	 * @param size
65  	 *            The size to set.
66  	 * 
67  	 * @uml.property name="size"
68  	 */
69  	public void setSize(int size) {
70  		this.size = size;
71  	}
72  
73      public LayerElement(String type, int size) {
74          this.nodesClassName = type;
75          this.size = size;
76      }
77  
78      public String toString() {
79          return CommitteeElement.class + ": [nodesClassName=" + getNodesClassName() + "; size="
80                  + getSize() + "]";
81      }
82  }