Ignore:
Timestamp:
06/26/13 13:27:31 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • use java annotations to mark classes and fields to be used when:
    • using java classes with ReflectionAccess? to represent remote objects with FramsClass? description found by "info ..." requests
    • to build up FramsClass? representation of objects not present at remote server
  • allow using primitive types (instead of wraping counterparts) in reflected classes
  • rework FramsClass? creation process (add FramsClassBuilder?)
  • add more tests

CHANGELOG:
Prepare model.World class.

Minor change.

Use primitive types for Genotype and Creature classes.

Use primitive types in model.Neuro* classes.

Use primitive types in model.Joint* classes.

Use primitive types in model.Part* classes.

Fix primitive values.

Extract FramsClassBuilder?.

Add tests of Model classes.

More fixes.

Refactorize out ParamCandidate?.

Several fixes.

Fix all regressions after introducing annotations.

Use annotations throughout the project.

Add exception classes.

Improve creation of FramsClass?.

More changes.

Many changes regarding annotations.

Annotate classes in com.framsticks.model package.

Remove manual FramsClass? constructor.

Construct FramsClass? for Creature. Add test.

Add default values to the ParamAnnotation?.

Add ParamBuilderTest? and ParamAnnotation?.

Add FramsClassAnnotation?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/model/Part.java

    r84 r86  
    22
    33
     4import com.framsticks.params.annotations.FramsClassAnnotation;
     5import com.framsticks.params.annotations.ParamAnnotation;
    46import com.framsticks.util.math.Point3d;
    57
     
    79 * The Class Part.
    810 */
     11@FramsClassAnnotation(id = "p")
    912public class Part extends BasePart {
    1013
    11         /** rx, ry, rz*/
     14        @ParamAnnotation
    1215        public double rx, ry, rz;
     16
    1317
    1418        public Point3d getRotation() { return new Point3d(rx, ry, rz); }
    1519        public void setRotation(Point3d r) { rx = r.x; ry = r.y; rz = r.z; }
    1620
    17         /** dn */
    18         public Double density;
     21        @ParamAnnotation(id = "dn")
     22        public double density;
    1923
    20         /** ing */
    21         public Double ingestion;
     24        @ParamAnnotation(id = "ing")
     25        public double ingestion;
    2226
    23         /** as */
    24         public Double assimilation;
     27        @ParamAnnotation(id = "as")
     28        public double assimilation;
    2529
    26         /** i */
     30        @ParamAnnotation(id = "i")
    2731        public String info;
    2832
    29         /** Vstyle */
     33        @ParamAnnotation(id = "Vstyle")
    3034        public String visualizationStyle;
    3135
    32         public Double getDn() { return density; }
    33         public void setDn(Double dn) { density = dn; }
     36        @ParamAnnotation(id = "vs")
     37        public double visualThickness;
    3438
    35         public Double getIng() { return ingestion; }
    36         public void setIng(Double ing) { ingestion = ing; }
    37 
    38         public Double getAs() { return assimilation; }
    39         public void setAs(Double as) { assimilation = as; }
    40 
    41         public String getI() { return info; }
    42         public void setI(String i) { info = i; }
    43 
    44         public String getVstyle() { return visualizationStyle; }
    45         public void setVstyle(String vstyle) { visualizationStyle = vstyle; }
     39        @ParamAnnotation
     40        public double vr, vg, vb;
    4641
    4742}
Note: See TracChangeset for help on using the changeset viewer.