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