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