aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Edge.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Edge.hpp')
-rw-r--r--src/engine/Edge.hpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/engine/Edge.hpp b/src/engine/Edge.hpp
index e2ddb98..7795854 100644
--- a/src/engine/Edge.hpp
+++ b/src/engine/Edge.hpp
@@ -19,8 +19,6 @@
#include <list>
-#include "raul/DoubleBuffer.hpp"
-
#include "machina/types.hpp"
#include "Action.hpp"
@@ -34,9 +32,9 @@ class Edge : public Stateful
{
public:
Edge(WPtr<Node> tail, SPtr<Node> head, float probability=1.0f)
- : _probability(probability)
- , _tail(tail)
+ : _tail(tail)
, _head(head)
+ , _probability(probability)
{}
void set(URIInt key, const Raul::Atom& value);
@@ -48,14 +46,13 @@ public:
void set_tail(WPtr<Node> tail) { _tail = tail; }
void set_head(SPtr<Node> head) { _head = head; }
- inline float probability() { return _probability.get(); }
- inline void set_probability(float p) { _probability.set(p); }
+ inline float probability() const { return _probability; }
+ inline void set_probability(float p) { _probability = p; }
private:
- Raul::DoubleBuffer<float> _probability;
-
WPtr<Node> _tail;
SPtr<Node> _head;
+ float _probability;
};
} // namespace machina