Ignore:
Timestamp:
06/22/13 21:51:33 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • simplification of entities management model
  • cleanup around params (improve hierarchy)
  • migrate from JUnit to TestNG
  • introduce FEST to automatically test GUI
  • improve slider control
  • loosen synchronization between gui tree and backend representation
  • and many other bug fixes

NOTICE:

  • a great many of lines is changed only because of substituting spaces with tabs

CHANGELOG (oldest changes at the bottom):

Some cleaning after fix found.

Fix bug with tree.

More changes with TreeNodes?.

Finally fix issue with tree.

Improve gui tree management.

Decouple update of values from fetch request in gui.

Minor changes.

Minor changes.

Minor change.

Change Path construction wording.

More fixes to SliderControl?.

Fix SliderControl?.

Fix SliderControl?.

Minor improvement.

Several changes.

Make NumberParam? a generic class.

Add robot to the gui test.

Setup common testing logging configuration.

Remove Parameters class.

Remove entityOwner from Parameters.

Move name out from Parameters class.

Move configuration to after the construction.

Simplify observers and endpoints.

Remove superfluous configureEntity overrides.

Add dependency on fest-swing-testng.

Use FEST for final print test.

Use FEST for more concise and readable assertions.

Divide test of F0Parser into multiple methods.

Migrate to TestNG

Minor change.

Change convention from LOGGER to log.

Fix reporting of errors during controls filling.

Bound maximal height of SliderControl?.

Minor improvements.

Improve tooltips for controls.

Also use Delimeted in more places.

Move static control utilities to Gui.

Rename package gui.components to controls.

Some cleaning in controls.

Improve Param classes placing.

Move ValueParam?, PrimitiveParam? and CompositeParam? one package up.

Improve ParamBuilder?.

Move getDef to ValueParam? and PrimitiveParam?.

Move getMax and getDef to ValueParam?.

Move getMin to ValueParam?.

Upgrade to laters apache commons versions.

Use filterInstanceof extensively.

Add instanceof filters.

Make ValueParam? in many places of Param.

Place assertions about ValueParam?.

Add ValueParam?

Rename ValueParam? to PrimitiveParam?

Minor changes.

Several improvements to params types.

Add NumberParam?.

Add TextControl? component.

Add .swp files to .gitignore

Greatly improved slider component.

Some improvements.

Make Param.reassign return also a state.

Add IterableIterator?.

Several changes.

  • Move util classes to better packages.
  • Remove warnings from eclim.

Several improvements.

Fix bug with BooleanParam?.

Some experiments with visualization.

Another fix to panel management.

Improve panel management.

Some refactorization around panels.

Add root class for panel.

Location:
java/main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • java/main

    • Property svn:ignore set to
      target
  • java/main/src/main/java/com/framsticks/leftovers/f0/NeuroClass.java

    r77 r84  
    44
    55import com.framsticks.params.FramsClass;
     6import com.framsticks.params.Param;
    67
    78/**
     
    1415        */
    1516
    16         /** The symbol glymph. */
     17        /**
     18         * The symbol glymph.
     19         */
    1720        private int[] symbolGlymph;
    18        
    19         /** The pref inputs. */
     21
     22        /**
     23         * The pref inputs.
     24         */
    2025        private int prefInputs;
    21        
    22         /** The pref output. */
     26
     27        /**
     28         * The pref output.
     29         */
    2330        private int prefOutput;
    24        
    25         /** The pref location. */
     31
     32        /**
     33         * The pref location.
     34         */
    2635        private int prefLocation;
    27        
    28         /** The param entry list. */
     36
     37        /**
     38         * The param entry list.
     39         */
    2940        private FramsClass framsClass;
    30        
    31         /** The visual hints. */
     41
     42        /**
     43         * The visual hints.
     44         */
    3245        private int visualHints;
    3346
     
    5366         * Instantiates a new neuro class.
    5467         *
    55          * @param framsClass the param entry list
    56          * @param prefInputs the pref inputs
    57          * @param prefOutput the pref output
     68         * @param framsClass   the param entry list
     69         * @param prefInputs   the pref inputs
     70         * @param prefOutput   the pref output
    5871         * @param prefLocation the pref location
    59          * @param visualHints the visual hints
     72         * @param visualHints  the visual hints
    6073         * @param symbolGlymph the symbol glymph
    6174         */
    6275        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) {
    6578                super();
    6679                this.framsClass = framsClass;
     
    113126         *
    114127         * @return 0 if the object doesn't need any assignment to the body element.
    115          * 1 = it likes to be attached to the Part ( @see
    116          * Neuro::attachToPart() )
    117          * 2 = the object prefers to have the Joint ( @see
    118          * 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() )
    119132         */
    120133        int getPreferredLocation() {
     
    170183        public String toString() {
    171184                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={");
    180196                for (int i = 0; i < framsClass.getParamCount(); i++) {
    181197                        sb.append("\n");
    182                         sb.append(framsClass.getParamEntry(i).toString());
     198                        sb.append(framsClass.getParamEntry(i, Param.class).toString());
    183199                }
    184200                sb.append("\n}]");
Note: See TracChangeset for help on using the changeset viewer.