1 | package com.framsticks.model; |
---|
2 | |
---|
3 | import com.framsticks.model.MechPart; |
---|
4 | import com.framsticks.model.Joint; |
---|
5 | import com.framsticks.util.Point3d; |
---|
6 | |
---|
7 | import java.util.ArrayList; |
---|
8 | import java.util.List; |
---|
9 | |
---|
10 | public class Creature { |
---|
11 | public String name; |
---|
12 | |
---|
13 | public String genotype; |
---|
14 | |
---|
15 | public String info; |
---|
16 | |
---|
17 | public Object group; |
---|
18 | |
---|
19 | public Integer generation; |
---|
20 | public Integer getGnum() { return generation; } |
---|
21 | public void setGnum(Integer gnum) { generation = gnum; } |
---|
22 | |
---|
23 | public Integer buildProblems; |
---|
24 | public Integer getBuildproblems() { return buildProblems; } |
---|
25 | public void setBuildproblems(Integer buildproblems) { buildProblems = buildproblems; } |
---|
26 | |
---|
27 | public Double startingEnergy; |
---|
28 | public Double getEnerg0() { return startingEnergy; } |
---|
29 | public void setEnerg0(Double energ0) { startingEnergy = energ0; } |
---|
30 | |
---|
31 | public Double idlePowerConsumption; |
---|
32 | public Double getIdleen() { return idlePowerConsumption; } |
---|
33 | public void setIdleen(Double idleen) { idlePowerConsumption = idleen; } |
---|
34 | |
---|
35 | public Double energy; |
---|
36 | |
---|
37 | public Double energyIncome; |
---|
38 | public Double getEnergy_p() { return energyIncome; } |
---|
39 | public void setEnergy_p(Double energy_p) { energyIncome = energy_p; } |
---|
40 | |
---|
41 | public Double energyCosts; |
---|
42 | public Double getEnergy_m() { return energyCosts; } |
---|
43 | public void setEnergy_m(Double energy_m) { energyCosts = energy_m; } |
---|
44 | |
---|
45 | public Double energyBalance; |
---|
46 | public Double getEnergy_b() { return energyBalance; } |
---|
47 | public void setEnergy_b(Double energy_b) { energyBalance = energy_b; } |
---|
48 | |
---|
49 | public Integer performanceCalculation; |
---|
50 | public Integer getPerf() { return performanceCalculation; } |
---|
51 | public void setPerf(Integer perf) { performanceCalculation = perf; } |
---|
52 | |
---|
53 | public Boolean neuralNetworkEnabled; |
---|
54 | |
---|
55 | public Boolean getNnenabled() { return neuralNetworkEnabled; } |
---|
56 | public void setNnenabled(Boolean nnenabled) { neuralNetworkEnabled = nnenabled; } |
---|
57 | |
---|
58 | public Boolean bodySimulation; |
---|
59 | public Boolean getBodysim() { return bodySimulation; } |
---|
60 | public void setBodysim(Boolean bodysim) { bodySimulation = bodysim; } |
---|
61 | |
---|
62 | public Boolean selfCollisions; |
---|
63 | public Boolean getSelfcol() { return selfCollisions; } |
---|
64 | public void setSelfcol(Boolean selfcol) { selfCollisions = selfcol; } |
---|
65 | |
---|
66 | public Integer lifeSpan; |
---|
67 | public Integer getLifespan() { return lifeSpan; } |
---|
68 | public void setLifespan(Integer lifespan) { lifeSpan = lifespan; } |
---|
69 | |
---|
70 | public Double distance; |
---|
71 | |
---|
72 | public Double currentVelocity; |
---|
73 | public Double getC_velocity() { return currentVelocity; } |
---|
74 | public void setC_velocity(Double c_velocity) { currentVelocity = c_velocity; } |
---|
75 | |
---|
76 | public Double currentVerticalVelocity; |
---|
77 | public Double getC_vertvelocity() { return currentVerticalVelocity; } |
---|
78 | public void setC_vertvelocity(Double c_vertvelocity) { currentVerticalVelocity = c_vertvelocity; } |
---|
79 | |
---|
80 | public Double currentVerticalPosition; |
---|
81 | public Double getC_vertpos() { return currentVerticalPosition; } |
---|
82 | public void setC_vertpos(Double c_vertpos) { currentVerticalPosition = c_vertpos; } |
---|
83 | |
---|
84 | public Double averageVelocity; |
---|
85 | public Double getVelocity() { return averageVelocity; } |
---|
86 | public void setVelocity(Double c_velocity) { averageVelocity = c_velocity; } |
---|
87 | |
---|
88 | public Double averageVerticalVelocity; |
---|
89 | public Double getVertvel() { return averageVerticalVelocity; } |
---|
90 | public void setVertvel(Double c_vertvelocity) { averageVerticalVelocity = c_vertvelocity; } |
---|
91 | |
---|
92 | public Double averageVerticalPosition; |
---|
93 | public Double getVertpos() { return averageVerticalPosition; } |
---|
94 | public void setVertpos(Double c_vertpos) { averageVerticalPosition = c_vertpos; } |
---|
95 | |
---|
96 | public Point3d position = new Point3d(); |
---|
97 | |
---|
98 | public Double getPos_x() { return position.x; } |
---|
99 | public void setPos_x(Double pos_x) { position.x = pos_x; } |
---|
100 | |
---|
101 | public Double getPos_y() { return position.y; } |
---|
102 | public void setPos_y(Double pos_y) { position.y = pos_y; } |
---|
103 | |
---|
104 | public Double getPos_z() { return position.z; } |
---|
105 | public void setPos_z(Double pos_z) { position.z = pos_z; } |
---|
106 | |
---|
107 | public Point3d boundingBox = new Point3d(); |
---|
108 | public Double getSize_x() { return boundingBox.x; } |
---|
109 | public void setSize_x(Double size_x) { boundingBox.x = size_x; } |
---|
110 | |
---|
111 | public Double getSize_y() { return boundingBox.y; } |
---|
112 | public void setSize_y(Double size_y) { boundingBox.y = size_y; } |
---|
113 | |
---|
114 | public Double getSize_z() { return boundingBox.z; } |
---|
115 | public void setSize_z(Double size_z) { boundingBox.z = size_z; } |
---|
116 | |
---|
117 | public Point3d center = new Point3d(); |
---|
118 | |
---|
119 | public Double getCenter_x() { return center.x; } |
---|
120 | public void setCenter_x(Double center_x) { center.x = center_x; } |
---|
121 | |
---|
122 | public Double getCenter_y() { return center.y; } |
---|
123 | public void setCenter_y(Double center_y) { center.y = center_y; } |
---|
124 | |
---|
125 | public Double getCenter_z() { return center.z; } |
---|
126 | public void setCenter_z(Double center_z) { center.z = center_z; } |
---|
127 | |
---|
128 | public Integer getNumparts() { return parts.size(); } |
---|
129 | public void setNumparts(Integer numparts) { } |
---|
130 | |
---|
131 | public Integer getNumjoints() { return joints.size(); } |
---|
132 | public void setNumjoints(Integer numjoints) { } |
---|
133 | |
---|
134 | public Integer getNumneurons() { return neurons.size(); } |
---|
135 | public void setNumneurons(Integer numneurons) { } |
---|
136 | |
---|
137 | public Object[] userFields = new Object[3]; |
---|
138 | public Object getUser1() { return userFields[0]; } |
---|
139 | public void setUser1(Object user1) { userFields[0] = user1; } |
---|
140 | |
---|
141 | public Object getUser2() { return userFields[1]; } |
---|
142 | public void setUser2(Object user2) { userFields[1] = user2; } |
---|
143 | |
---|
144 | public Object getUser3() { return userFields[2]; } |
---|
145 | public void setUser3(Object user3) { userFields[2] = user3; } |
---|
146 | |
---|
147 | public Integer selfCollisionMask; |
---|
148 | public Integer getSelfmask() { return selfCollisionMask; } |
---|
149 | public void setSelfmask(Integer selfmask) { selfCollisionMask = selfmask; } |
---|
150 | |
---|
151 | public Integer otherCollisionMask; |
---|
152 | public Integer getOthermask() { return otherCollisionMask; } |
---|
153 | public void setOthermask(Integer othermask) { otherCollisionMask = othermask; } |
---|
154 | |
---|
155 | public String uid; |
---|
156 | |
---|
157 | public Integer index; |
---|
158 | |
---|
159 | public final List<Part> parts = new ArrayList<Part>(); |
---|
160 | public final List<Joint> joints = new ArrayList<Joint>(); |
---|
161 | public final List<NeuroDef> neurodefs = new ArrayList<NeuroDef>(); |
---|
162 | |
---|
163 | public final List<MechPart> mechparts = new ArrayList<MechPart>(); |
---|
164 | public final List<MechJoint> mechjoints = new ArrayList<MechJoint>(); |
---|
165 | public final List<Neuro> neurons = new ArrayList<Neuro>(); |
---|
166 | |
---|
167 | |
---|
168 | |
---|
169 | } |
---|