src/work/akos/simann_demo.cc
changeset 1327 ecc1cdea2ee7
parent 1023 3268fef5d623
equal deleted inserted replaced
3:47ea315e346b 4:0b1604182804
     8   void mutate() {}
     8   void mutate() {}
     9   void revert() {}
     9   void revert() {}
    10 };
    10 };
    11 
    11 
    12 int main() {
    12 int main() {
       
    13   /*
    13   SimAnn<MyEntity> simann;
    14   SimAnn<MyEntity> simann;
    14   SimpleController ctrl;
    15   SimpleController ctrl;
    15   simann.setController(ctrl);
    16   simann.setController(ctrl);
    16   MyEntity ent;
    17   MyEntity ent;
    17   simann.setEntity(ent);
    18   simann.setEntity(ent);
    18   simann.run();
    19   simann.run();
       
    20   */
    19 
    21 
    20   SimAnn<MyEntity> simann2;
    22   SimAnn<MyEntity> simann2;
    21   AdvancedController ctrl2(20.0);
    23   AdvancedController ctrl2(10.0);
    22   simann2.setController(ctrl2);
    24   simann2.setController(ctrl2);
    23   MyEntity ent2;
    25   MyEntity ent2;
    24   simann2.setEntity(ent2);
    26   simann2.setEntity(ent2);
    25   simann2.run();
    27   simann2.run();
    26 }
    28 }