source:
lemon-0.x/src/work/akos/simann_demo.cc
@
963:5a7556e9e340
Last change on this file since 963:5a7556e9e340 was 960:908a1a6f0752, checked in by , 20 years ago | |
---|---|
File size: 318 bytes |
Rev | Line | |
---|---|---|
[960] | 1 | #include <cstdlib> |
2 | #include <cmath> | |
3 | #include "simann.h" | |
4 | ||
5 | using namespace lemon; | |
6 | ||
7 | class MyEntity { | |
8 | public: | |
9 | double mutate() { return 10.0; } | |
10 | void revert() {} | |
11 | }; | |
12 | ||
13 | int main() { | |
14 | SimAnn<MyEntity> simann; | |
15 | SimpleController ctrl; | |
16 | simann.setController(ctrl); | |
17 | MyEntity ent; | |
18 | simann.setEntity(ent); | |
19 | simann.run(); | |
20 | } |
Note: See TracBrowser
for help on using the repository browser.