1 | package com.framsticks.model.f0; |
---|
2 | |
---|
3 | import com.framsticks.params.FramsClassBuilder; |
---|
4 | import com.framsticks.params.annotations.FramsClassAnnotation; |
---|
5 | import com.framsticks.params.annotations.ParamAnnotation; |
---|
6 | |
---|
7 | @FramsClassAnnotation(id = "neuroclass", name = "neuroclass") |
---|
8 | public class NeuroClassBuilder extends FramsClassBuilder { |
---|
9 | |
---|
10 | /** |
---|
11 | * |
---|
12 | */ |
---|
13 | public NeuroClassBuilder() { |
---|
14 | super(); |
---|
15 | } |
---|
16 | |
---|
17 | protected Integer preferredInputs; |
---|
18 | |
---|
19 | protected Integer preferredOutput; |
---|
20 | |
---|
21 | protected Integer preferredLocation; |
---|
22 | |
---|
23 | protected Integer visualHints; |
---|
24 | |
---|
25 | protected String symbolGlyph; |
---|
26 | |
---|
27 | /** That method is just an alias needed by f0def.xml in current shape. |
---|
28 | * |
---|
29 | */ |
---|
30 | @ParamAnnotation(id = "description") |
---|
31 | public NeuroClassBuilder descriptionAlias(String description) { |
---|
32 | description(description); |
---|
33 | return this; |
---|
34 | } |
---|
35 | |
---|
36 | /** That method is just an alias needed by f0def.xml in current shape. |
---|
37 | * |
---|
38 | */ |
---|
39 | @ParamAnnotation(id = "description") |
---|
40 | public String descriptionAlias() { |
---|
41 | return description; |
---|
42 | } |
---|
43 | |
---|
44 | @Override |
---|
45 | public NeuroClass finish() { |
---|
46 | return new NeuroClass(this); |
---|
47 | } |
---|
48 | |
---|
49 | /** |
---|
50 | * @return the preferredInputs |
---|
51 | */ |
---|
52 | @ParamAnnotation(id = "inputs") |
---|
53 | public Integer getPreferredInputs() { |
---|
54 | return preferredInputs; |
---|
55 | } |
---|
56 | |
---|
57 | /** |
---|
58 | * @param preferredInputs the preferredInputs to set |
---|
59 | */ |
---|
60 | @ParamAnnotation(id = "inputs") |
---|
61 | public void setPreferredInputs(Integer preferredInputs) { |
---|
62 | this.preferredInputs = preferredInputs; |
---|
63 | } |
---|
64 | |
---|
65 | /** |
---|
66 | * @return the preferredOutput |
---|
67 | */ |
---|
68 | @ParamAnnotation(id = "output") |
---|
69 | public Integer getPreferredOutput() { |
---|
70 | return preferredOutput; |
---|
71 | } |
---|
72 | |
---|
73 | /** |
---|
74 | * @param preferredOutput the preferredOutput to set |
---|
75 | */ |
---|
76 | @ParamAnnotation(id = "output") |
---|
77 | public void setPreferredOutput(Integer preferredOutput) { |
---|
78 | this.preferredOutput = preferredOutput; |
---|
79 | } |
---|
80 | |
---|
81 | /** |
---|
82 | * @return the preferredLocation |
---|
83 | */ |
---|
84 | @ParamAnnotation(id = "location") |
---|
85 | public Integer getPreferredLocation() { |
---|
86 | return preferredLocation; |
---|
87 | } |
---|
88 | |
---|
89 | /** |
---|
90 | * @param preferredLocation the preferredLocation to set |
---|
91 | */ |
---|
92 | @ParamAnnotation(id = "location") |
---|
93 | public void setPreferredLocation(Integer preferredLocation) { |
---|
94 | this.preferredLocation = preferredLocation; |
---|
95 | } |
---|
96 | |
---|
97 | /** |
---|
98 | * @return the visualHints |
---|
99 | */ |
---|
100 | @ParamAnnotation(id = "visualhints") |
---|
101 | public Integer getVisualHints() { |
---|
102 | return visualHints; |
---|
103 | } |
---|
104 | |
---|
105 | /** |
---|
106 | * @param visualHints the visualHints to set |
---|
107 | */ |
---|
108 | @ParamAnnotation(id = "visualhints") |
---|
109 | public void setVisualHints(Integer visualHints) { |
---|
110 | this.visualHints = visualHints; |
---|
111 | } |
---|
112 | |
---|
113 | /** |
---|
114 | * @return the symbolGlyph |
---|
115 | */ |
---|
116 | @ParamAnnotation(id = "symbol") |
---|
117 | public String getSymbolGlyph() { |
---|
118 | return symbolGlyph; |
---|
119 | } |
---|
120 | |
---|
121 | /** |
---|
122 | * @param symbolGlyph the symbolGlyph to set |
---|
123 | */ |
---|
124 | @ParamAnnotation(id = "symbol") |
---|
125 | public void setSymbolGlyph(String symbolGlyph) { |
---|
126 | this.symbolGlyph = symbolGlyph; |
---|
127 | } |
---|
128 | |
---|
129 | |
---|
130 | } |
---|