author | klao |
Thu, 04 Nov 2004 20:24:59 +0000 | |
changeset 959 | c80ef5912903 |
parent 942 | 75fdd0c6866d |
permissions | -rw-r--r-- |
ladanyi@918 | 1 |
#include <cstdlib> |
ladanyi@918 | 2 |
#include <cmath> |
ladanyi@958 | 3 |
#include "simann.h" |
ladanyi@918 | 4 |
|
ladanyi@942 | 5 |
using namespace lemon; |
ladanyi@942 | 6 |
|
ladanyi@918 | 7 |
class MyEntity { |
ladanyi@918 | 8 |
public: |
ladanyi@918 | 9 |
double mutate() { return 10.0; } |
ladanyi@958 | 10 |
void revert() {} |
ladanyi@918 | 11 |
}; |
ladanyi@918 | 12 |
|
ladanyi@918 | 13 |
int main() { |
ladanyi@942 | 14 |
SimAnn<MyEntity> simann; |
ladanyi@958 | 15 |
SimpleController ctrl; |
ladanyi@942 | 16 |
simann.setController(ctrl); |
ladanyi@918 | 17 |
MyEntity ent; |
ladanyi@942 | 18 |
simann.setEntity(ent); |
ladanyi@942 | 19 |
simann.run(); |
ladanyi@918 | 20 |
} |