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

    r84 r86  
    11package com.framsticks.model;
     2
     3import com.framsticks.params.annotations.FramsClassAnnotation;
     4import com.framsticks.params.annotations.ParamAnnotation;
    25
    36/**
     
    69 * All accessors are used by ReflectionAccess.
    710 */
     11@FramsClassAnnotation(id = "j")
    812public class Joint extends BaseJoint {
    913
    10         /** i */
     14        @ParamAnnotation(id = "i")
    1115        public String info;
    12         public String getI() { return info; }
    13         public void setI(String i) { info = i; }
    1416
    15         /** p1 */
    16         public Integer part1;
    17         public void setP1(Integer p1) { part1 = p1; }
    18         public Integer getP1() { return part1; }
     17        @ParamAnnotation(id = "p1")
     18        public int part1;
    1919
    20         /** p2 */
    21         public Integer part2;
    22         public void setP2(Integer p2) { part2 = p2; }
    23         public Integer getP2() { return part2; }
     20        @ParamAnnotation(id = "p2")
     21        public int part2;
    2422
     23        @ParamAnnotation(id = "stam")
     24        public double stamina;
    2525
    26         /** stam */
    27         public Double stamina;
    28         public Double getStam() { return stamina; }
    29         public void setStam(Double stam) { stamina = stam; }
     26        @ParamAnnotation(id = "Vstyle")
     27        public String visualizationStyle;
    3028
     29        @ParamAnnotation
     30        public double vr, vg, vb;
    3131
    32         /** Vstyle */
    33         public String visualizationStyle;
    34         public String getVstyle() { return visualizationStyle; }
    35         public void setVstyle(String Vstyle) { visualizationStyle = Vstyle; }
    3632}
Note: See TracChangeset for help on using the changeset viewer.