source: java/main/src/main/java/com/framsticks/model/Genotype.java @ 100

Last change on this file since 100 was 100, checked in by psniegowski, 11 years ago

HIGHLIGHTS:

  • add <include/> to configuration
  • add side notes to tree
    • used to store arbitrary information alongside the tree structure
  • migrate to log4j2
    • supports lazy string evaluation of passed arguments
  • improve GUI tree
    • it stays in synchronization with actual state (even in high load test scenario)
  • improve panel management in GUI
  • make loading objects in GUI more lazy
  • offload parsing to connection receiver thread
    • info parsing
    • first step of objects parsing
  • fix connection parsing bug (eof in long values)
  • support zero-arguments procedure in table view

CHANGELOG:
Implement procedure calls from table view.

Refactorization around procedures in tables.

Add table editor for buttons.

Render buttons in the the list view.

Further improve Columns.

Add Column class for TableModel?.

Accept also non-arguments ProcedureParams? in tableView.

Increase maximal TextAreaControl? size.

Add tooltip to ProcedureControl?.

Fix bug of interpreting eofs in long values by connection reader.

Further rework connection parsing.

Simplify client connection processing.

Test ListChange? modification.

Test ListChange? events with java server.

Add TestChild?.

Fix bug with fast deregistering when connecting to running server.

Another minor refactorization in TreeOperations?.

Fix bug in SimpleAbstractAccess? loading routine.

Another minor improvement.

Minor change.

Make reading of List objects two-phase.

Another minor change.

Dispatch parsing into receiver thread.

Another step.

Enclose passing value in ObjectParam? case in closure.

Minor step.

Minor change on way to offload parsing.

Temporarily comment out single ValueParam? get.

It will be generalized to multi ValueParam?.

Process info in receiver thread.

Add DispatchingExceptionHandler?.

Make waits in browser test longer.

Use FETCHED_MARK.

It is honored in GUI, where it used to decide whether to get values

after user action.

It is set in standard algorithm for processing fetched values.

Add remove operation to side notes.

Make loading more lazy.

Improve loading policy.

On node choose load itself, on node expansion, load children.

Minor improvement.

Fix bug with panel interleaving.

Minor improvements.

Improve panel management.

More cleaning around panels.

Reorganize panels.

Further improve tree.

Fix bug in TreeModel?.

Remove children from TreeNode?.

Implement TreeNode? hashCode and equals.

Make TreeNode? delegate equals and hashcode to internal reference.

Move listeners from TreeNode? to side notes.

Store path.textual as a side note.

Side note params instead of accesses for objects.

More refactorizations.

In TreeNode? bindAccess based on side notes.

Minor step.

Hide createAccess.

Rename AccessInterface? to Access.

Minor changes.

Several improvements in high load scenarios.

Change semantics of ArrayListAccess?.set(index, null);

It now removes the element, making list shorter
(it was set to null before).

Add path remove handler.

Handle exceptions in Connection.

Update .gitignore

Configure logging to file.

Move registration to TreeModel?.

Further refactorization.

Minor refactorization.

Minor improvements.

Use specialized event also for Modify action of ListChange?.

Use remove events.

Use the insertion events for tree.

Further improve tree refreshing.

Further improve reacting on events in GUI.

Fix problem with not adding objects on addition list change.

Migrate to log4j lazy String construction interface.

Migrate imports to log4j2.

Drop dependency on adapter to version 1.2.

Switch log4j implementation to log4j2.

Add dirty mark to the NodeAtFrame?.

Make selecting in AccessInterfaces? type safe.

Ignore containers size settings in Model and Genotype.

Use tree side notes to remember local changes and panels.

Add sideNotes to tree.

They will be used to store various accompanying information
right in the tree.

Use ReferenceIdentityMap? from apache in TreeNode?.

It suits the need perfectly (weak semantics on both key and value).

Make ArrayListParam? do not react size changes.

Guard in TableModel? before not yet loaded objects.

Add <include/> clause and AutoInjector?.

Extract common columns configuration to separate xml,
that can be included by other configurations.

File size: 2.5 KB
Line 
1package com.framsticks.model;
2
3import com.framsticks.params.annotations.FramsClassAnnotation;
4import com.framsticks.params.annotations.ParamAnnotation;
5
6
7// import org.apache.logging.log4j.Logger;
8
9@FramsClassAnnotation
10public class Genotype extends Model {
11        // private final static Logger log = LogManager.getLogger(Genotype.class);
12
13        @ParamAnnotation
14        public String name;
15
16        @ParamAnnotation
17        public String genotype;
18
19        @ParamAnnotation
20        public String info;
21
22        @ParamAnnotation(id = "simi")
23        public double similarity;
24
25        @ParamAnnotation(id = "numconnections")
26        public double brainConnections;
27
28        @ParamAnnotation(id = "num")
29        public int ordinalNumber;
30
31        @ParamAnnotation(id = "gnum")
32        public int generation;
33
34        @ParamAnnotation
35        public int instances;
36
37        @ParamAnnotation(id = "lifespan")
38        public double lifeSpan;
39
40        @ParamAnnotation
41        public double velocity;
42
43        @ParamAnnotation
44        public double distance;
45
46        @ParamAnnotation(id = "vertvel")
47        public double verticalVelocity;
48
49        @ParamAnnotation(id = "vertpos")
50        public double verticalPosition;
51
52        @ParamAnnotation(id = "fit")
53        public double fitness;
54
55        @ParamAnnotation(id = "fit2")
56        public double finalFitness;
57
58        @ParamAnnotation(id = "f0genotype")
59        public String genotypeInF0;
60
61        @ParamAnnotation(id = "convtrace1")
62        public String conversionBacktrace;
63
64        @ParamAnnotation
65        public boolean isValid;
66
67        public Object[] userFields = new Object[3];
68        @ParamAnnotation
69        public Object getUser1() { return userFields[0]; }
70        @ParamAnnotation
71        public void setUser1(Object user1) { userFields[0] = user1; }
72
73        @ParamAnnotation
74        public Object getUser2() { return userFields[1]; }
75        @ParamAnnotation
76        public void setUser2(Object user2) { userFields[1] = user2; }
77
78        @ParamAnnotation
79        public Object getUser3() { return userFields[2]; }
80        @ParamAnnotation
81        public void setUser3(Object user3) { userFields[2] = user3; }
82
83        @ParamAnnotation
84        public String uid;
85
86        @ParamAnnotation
87        public double getStrsiz() { return getNumparts(); }
88        @ParamAnnotation
89        public void setStrsiz(double strsiz) {}
90
91
92        @ParamAnnotation
93        public double getStrjoints() { return getNumjoints(); }
94        @ParamAnnotation
95        public void setStrjoints(double strjoints) {}
96
97
98        @ParamAnnotation
99        public double getNnsiz() { return getNumneurons(); }
100        @ParamAnnotation
101        public void setNnsiz(double nnsiz) {}
102
103
104        @ParamAnnotation
105        public double getNncon() { return brainConnections; }
106        @ParamAnnotation
107        public void setNncon(double nncon) { this.brainConnections = nncon; }
108
109        @ParamAnnotation
110        public int getPopsiz() { return instances; }
111        @ParamAnnotation
112        public void setPopsiz(int popsiz) { this.instances = popsiz; }
113
114
115}
116
Note: See TracBrowser for help on using the repository browser.