- Timestamp:
- 06/22/13 21:51:33 (11 years ago)
- Location:
- java/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main
-
Property
svn:ignore
set to
target
-
Property
svn:ignore
set to
-
java/main/src/main/java/com/framsticks/leftovers/f0/NeuroClass.java
r77 r84 4 4 5 5 import com.framsticks.params.FramsClass; 6 import com.framsticks.params.Param; 6 7 7 8 /** … … 14 15 */ 15 16 16 /** The symbol glymph. */ 17 /** 18 * The symbol glymph. 19 */ 17 20 private int[] symbolGlymph; 18 19 /** The pref inputs. */ 21 22 /** 23 * The pref inputs. 24 */ 20 25 private int prefInputs; 21 22 /** The pref output. */ 26 27 /** 28 * The pref output. 29 */ 23 30 private int prefOutput; 24 25 /** The pref location. */ 31 32 /** 33 * The pref location. 34 */ 26 35 private int prefLocation; 27 28 /** The param entry list. */ 36 37 /** 38 * The param entry list. 39 */ 29 40 private FramsClass framsClass; 30 31 /** The visual hints. */ 41 42 /** 43 * The visual hints. 44 */ 32 45 private int visualHints; 33 46 … … 53 66 * Instantiates a new neuro class. 54 67 * 55 * @param framsClass the param entry list56 * @param prefInputs the pref inputs57 * @param prefOutput the pref output68 * @param framsClass the param entry list 69 * @param prefInputs the pref inputs 70 * @param prefOutput the pref output 58 71 * @param prefLocation the pref location 59 * @param visualHints the visual hints72 * @param visualHints the visual hints 60 73 * @param symbolGlymph the symbol glymph 61 74 */ 62 75 public NeuroClass(FramsClass framsClass, int prefInputs, 63 int prefOutput, int prefLocation, int visualHints,64 int[] symbolGlymph) {76 int prefOutput, int prefLocation, int visualHints, 77 int[] symbolGlymph) { 65 78 super(); 66 79 this.framsClass = framsClass; … … 113 126 * 114 127 * @return 0 if the object doesn't need any assignment to the body element. 115 * 1 = it likes to be attached to the Part ( @see116 * Neuro::attachToPart() )117 * 2 = the object prefers to have the Joint ( @see118 * Neuro::attachToJoint() )128 * 1 = it likes to be attached to the Part ( @see 129 * Neuro::attachToPart() ) 130 * 2 = the object prefers to have the Joint ( @see 131 * Neuro::attachToJoint() ) 119 132 */ 120 133 int getPreferredLocation() { … … 170 183 public String toString() { 171 184 StringBuilder sb = new StringBuilder(); 172 sb.append("NeuroClass [getId=" + framsClass.getId() + ", getName=" 173 + framsClass.getName() + ", description=" 174 + framsClass.getDescription() + ", groups#=" 175 + framsClass.getGroupCount() + ", prefInputs=" + prefInputs 176 + ", prefOutput=" + prefOutput + ", prefLocation=" 177 + prefLocation + ", visualHints=" + visualHints 178 + ", symbolGlymph=" + Arrays.toString(symbolGlymph) 179 + ", paramList={"); 185 sb.append("NeuroClass [getId=").append(framsClass.getId()) 186 .append(", getName=").append(framsClass.getName()) 187 .append(", description=").append(framsClass.getDescription()) 188 .append(", groups#=").append(framsClass.getGroupCount()) 189 .append(", prefInputs=").append(prefInputs) 190 .append(", prefOutput=").append(prefOutput) 191 .append(", prefLocation=").append(prefLocation) 192 .append(", visualHints=").append(visualHints) 193 .append(", symbolGlymph=").append(Arrays.toString(symbolGlymph)); 194 195 sb.append(", paramList={"); 180 196 for (int i = 0; i < framsClass.getParamCount(); i++) { 181 197 sb.append("\n"); 182 sb.append(framsClass.getParamEntry(i ).toString());198 sb.append(framsClass.getParamEntry(i, Param.class).toString()); 183 199 } 184 200 sb.append("\n}]");
Note: See TracChangeset
for help on using the changeset viewer.