author | ladanyi |
Thu, 04 Nov 2004 21:28:55 +0000 | |
changeset 960 | 908a1a6f0752 |
child 965 | 1e16b8dac159 |
permissions | -rw-r--r-- |
ladanyi@960 | 1 |
#include <cstdlib> |
ladanyi@960 | 2 |
#include <cmath> |
ladanyi@960 | 3 |
#include "simann.h" |
ladanyi@960 | 4 |
|
ladanyi@960 | 5 |
using namespace lemon; |
ladanyi@960 | 6 |
|
ladanyi@960 | 7 |
class MyEntity { |
ladanyi@960 | 8 |
public: |
ladanyi@960 | 9 |
double mutate() { return 10.0; } |
ladanyi@960 | 10 |
void revert() {} |
ladanyi@960 | 11 |
}; |
ladanyi@960 | 12 |
|
ladanyi@960 | 13 |
int main() { |
ladanyi@960 | 14 |
SimAnn<MyEntity> simann; |
ladanyi@960 | 15 |
SimpleController ctrl; |
ladanyi@960 | 16 |
simann.setController(ctrl); |
ladanyi@960 | 17 |
MyEntity ent; |
ladanyi@960 | 18 |
simann.setEntity(ent); |
ladanyi@960 | 19 |
simann.run(); |
ladanyi@960 | 20 |
} |