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

    r84 r86  
    11package com.framsticks.model;
    22
     3import com.framsticks.params.annotations.ParamAnnotation;
    34import com.framsticks.util.math.Point3d;
    45
     
    89public class BaseJoint {
    910
    10         /** stif */
    11         public Double stiffness;
    12         public Double getStif() { return stiffness; }
    13         public void setStif(Double stif) { stiffness = stif; }
     11        @ParamAnnotation(id = "stif")
     12        public double stiffness;
    1413
    15         /** rotstif */
    16         public Double rotationStiffness;
    17         public Double getRotstif() { return rotationStiffness; }
    18         public void setRotstif(Double rotstif) { rotationStiffness = rotstif; }
     14        @ParamAnnotation(id = "rotstif")
     15        public double rotationStiffness;
    1916
    20         /** rx, ry, rz*/
     17        @ParamAnnotation
    2118        public double rx, ry, rz;
    2219
     
    2421        public void setRotation(Point3d r) { rx = r.x; ry = r.y; rz = r.z; }
    2522
    26         /** dx, dy, dz*/
     23        @ParamAnnotation
    2724        public double dx, dy, dz;
    2825
Note: See TracChangeset for help on using the changeset viewer.