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

    r84 r86  
    11package com.framsticks.model;
    22
     3import com.framsticks.params.annotations.FramsClassAnnotation;
     4import com.framsticks.params.annotations.ParamAnnotation;
    35import com.framsticks.util.math.Point3d;
    46
     
    68 * @author Piotr Sniegowski
    79 */
     10@FramsClassAnnotation
    811public class Neuro extends BaseNeuro {
    912
    10         public Integer channelCount;
     13        @ParamAnnotation
     14        public int channelCount;
    1115
    12         public Double inputSum;
     16        @ParamAnnotation
     17        public double inputSum;
    1318
    14         public Double weightedInputSum;
     19        @ParamAnnotation
     20        public double weightedInputSum;
    1521
    16         public Double state;
     22        @ParamAnnotation
     23        public double state;
    1724
    18         public Double currentState;
    19         public Double getCurrState() { return currentState; }
    20         public void setCurrState(Double currState) { currentState = currState; }
     25        @ParamAnnotation(id = "currState")
     26        public double currentState;
    2127
    22         public Boolean hold;
     28        @ParamAnnotation
     29        public boolean hold;
    2330
     31        @ParamAnnotation
    2432        public double position_x, position_y, position_z;
    2533
Note: See TracChangeset for help on using the changeset viewer.