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