diff options
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/Controller.cpp | 2 | ||||
-rw-r--r-- | src/engine/Edge.cpp | 2 | ||||
-rw-r--r-- | src/engine/Node.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/Controller.cpp b/src/engine/Controller.cpp index 00ad9f9..c400043 100644 --- a/src/engine/Controller.cpp +++ b/src/engine/Controller.cpp @@ -41,7 +41,7 @@ Controller::create(const client::ClientObject& properties) { TimeDuration dur( _engine->machine()->time().unit(), - properties.get(URIs::instance().machina_duration).get_float()); + properties.get(URIs::instance().machina_duration).get<float>()); SPtr<Node> node(new Node(dur)); SPtr<client::ClientObject> obj( new client::ClientObject(properties, node->id())); diff --git a/src/engine/Edge.cpp b/src/engine/Edge.cpp index cc76e61..d1f8240 100644 --- a/src/engine/Edge.cpp +++ b/src/engine/Edge.cpp @@ -28,7 +28,7 @@ void Edge::set(URIInt key, const Raul::Atom& value) { if (key == URIs::instance().machina_probability) { - _probability.set(value.get_float()); + _probability.set(value.get<float>()); } } diff --git a/src/engine/Node.cpp b/src/engine/Node.cpp index cf326a1..06317ef 100644 --- a/src/engine/Node.cpp +++ b/src/engine/Node.cpp @@ -227,7 +227,7 @@ Node::set(URIInt key, const Raul::Atom& value) if (key == URIs::instance().machina_initial) { std::cerr << "error: Attempt to change node initial state" << std::endl; } else if (key == URIs::instance().machina_selector) { - set_selector(value.get_bool()); + set_selector(value.get<int32_t>()); } } |