author | klao |
Thu, 25 Nov 2004 14:48:24 +0000 | |
changeset 1021 | fd1d073b6557 |
parent 965 | 1e16b8dac159 |
child 1023 | 3268fef5d623 |
permissions | -rw-r--r-- |
1 #include "simann.h"
3 using namespace lemon;
5 class MyEntity {
6 public:
7 double mutate() { return 10.0; }
8 void revert() {}
9 };
11 int main() {
12 SimAnn<MyEntity> simann;
13 SimpleController ctrl;
14 simann.setController(ctrl);
15 MyEntity ent;
16 simann.setEntity(ent);
17 simann.run();
19 SimAnn<MyEntity> simann2;
20 AdvancedController ctrl2(20.0);
21 simann2.setController(ctrl2);
22 MyEntity ent2;
23 simann2.setEntity(ent2);
24 simann2.run();
25 }