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/BasePart.java

    r84 r86  
    11package com.framsticks.model;
    22
     3import com.framsticks.params.annotations.ParamAnnotation;
    34import com.framsticks.util.math.Orientation;
    45import com.framsticks.util.math.Point3d;
     
    89 */
    910public class BasePart {
    10         /** x, y, z */
     11
     12        @ParamAnnotation
    1113        public double x, y, z;
    1214
     
    1416        public void setPosition(Point3d p) { x = p.x; y = p.y; z = p.z; }
    1517
    16         /** m */
    17         public Double mass = 0.0;
    18         public Double getM() { return mass; }
    19         public void setM(Double m) { mass = m; }
     18        @ParamAnnotation(id = "m")
     19        public double mass = 0.0;
    2020
    21         /** s */
    22         public Double size = 0.0;
    23         public Double getS() { return size; }
    24         public void setS(Double s) { size = s; }
     21        @ParamAnnotation(id = "s")
     22        public double size = 0.0;
    2523
    26         /** fr */
    27         public Double friction;
    28         public Double getFr() { return friction; }
    29         public void setFr(Double fr) { friction = fr; }
     24        @ParamAnnotation(id = "fr")
     25        public double friction;
    3026
    31 
     27        @ParamAnnotation
    3228        public double oxx, oxy, oxz, oyx, oyy, oyz, ozx, ozy, ozz;
    3329
Note: See TracChangeset for help on using the changeset viewer.