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/core/Entity.java

    r85 r86  
    33import javax.annotation.OverridingMethodsMustInvokeSuper;
    44
    5 import com.framsticks.params.FramsClass;
     5import com.framsticks.params.annotations.FramsClassAnnotation;
     6import com.framsticks.params.annotations.ParamAnnotation;
    67import com.framsticks.util.dispatching.Thread;
    78import com.framsticks.util.dispatching.Dispatcher;
     
    1415 * @author Piotr Sniegowski
    1516 */
     17@FramsClassAnnotation
    1618public abstract class Entity implements Dispatcher<Entity> {
    1719
    18         private final static Logger log = Logger.getLogger(Entity.class.getName());
     20        private final static Logger log = Logger.getLogger(Entity.class);
    1921
     22        @ParamAnnotation
    2023        protected String name = "entity";
    2124        protected EntityOwner owner;
     
    109112        }
    110113
    111         public static void constructFramsClass(FramsClass.Constructor constructor) {
    112                 constructor.method("getName");
    113         }
    114114}
Note: See TracChangeset for help on using the changeset viewer.