aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/Machine.cpp12
-rw-r--r--src/engine/Node.cpp4
2 files changed, 11 insertions, 5 deletions
diff --git a/src/engine/Machine.cpp b/src/engine/Machine.cpp
index 41335bc..6cade39 100644
--- a/src/engine/Machine.cpp
+++ b/src/engine/Machine.cpp
@@ -221,9 +221,15 @@ Machine::write_state(Raul::RDFWriter& writer)
(*n)->write_state(writer);
- writer.write(RdfId(RdfId::RESOURCE, ""),
- RdfId(RdfId::RESOURCE, "machina:node"),
- (*n)->id());
+ if ((*n)->is_initial()) {
+ writer.write(RdfId(RdfId::RESOURCE, ""),
+ RdfId(RdfId::RESOURCE, "machina:initialNode"),
+ (*n)->id());
+ } else {
+ writer.write(RdfId(RdfId::RESOURCE, ""),
+ RdfId(RdfId::RESOURCE, "machina:node"),
+ (*n)->id());
+ }
for (Node::Edges::const_iterator e = (*n)->outgoing_edges().begin();
e != (*n)->outgoing_edges().end(); ++e) {
diff --git a/src/engine/Node.cpp b/src/engine/Node.cpp
index ecb7a22..47eee35 100644
--- a/src/engine/Node.cpp
+++ b/src/engine/Node.cpp
@@ -131,9 +131,9 @@ Node::write_state(Raul::RDFWriter& writer)
RdfId(RdfId::RESOURCE, "machina:duration"),
Raul::Atom((float)_duration));
- for (Node::Edges::const_iterator e = _outgoing_edges.begin();
+ /*for (Node::Edges::const_iterator e = _outgoing_edges.begin();
e != _outgoing_edges.end(); ++e)
- (*e)->write_state(writer);
+ (*e)->write_state(writer);*/
}