src/work/akos/simann_demo.cc
author deba
Sat, 13 Nov 2004 21:37:54 +0000
changeset 989 ca95f8b5c931
parent 960 908a1a6f0752
child 999 5c846ec3f787
permissions -rw-r--r--
XyzConcept moved to Xyz::Constraints
use checkConcept in the next way:

checkConcept<ErasableGraph, ListGraph>();
checkConcept<ReadWriteMap<Node, Node>, PredMap>;
     1 #include "simann.h"
     2 
     3 using namespace lemon;
     4 
     5 class MyEntity {
     6 public:
     7   double mutate() { return 10.0; }
     8   void revert() {}
     9 };
    10 
    11 int main() {
    12   SimAnn<MyEntity> simann;
    13   SimpleController ctrl;
    14   simann.setController(ctrl);
    15   MyEntity ent;
    16   simann.setEntity(ent);
    17   simann.run();
    18 }