diff options
author | David Robillard <d@drobilla.net> | 2007-03-02 00:05:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-03-02 00:05:18 +0000 |
commit | 19b537a142c127dd2c1d9a40a7999714f9d2175d (patch) | |
tree | 85d7da2a138e34ca5783dffbc6547fd4500ca7ca /src/engine/Node.cpp | |
parent | de25ae35ccb0613290ba20bfcf0ea15476c26ed5 (diff) | |
download | machina-19b537a142c127dd2c1d9a40a7999714f9d2175d.tar.gz machina-19b537a142c127dd2c1d9a40a7999714f9d2175d.tar.bz2 machina-19b537a142c127dd2c1d9a40a7999714f9d2175d.zip |
Work towards Action serialization.
Made edge length in dot graphs (from machina2dot) correspond to node duration
to make automaton diagram map closer to music notation.
git-svn-id: http://svn.drobilla.net/lad/machina@341 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/Node.cpp')
-rw-r--r-- | src/engine/Node.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/engine/Node.cpp b/src/engine/Node.cpp index 47eee35..7af2997 100644 --- a/src/engine/Node.cpp +++ b/src/engine/Node.cpp @@ -130,6 +130,13 @@ Node::write_state(Raul::RDFWriter& writer) writer.write(_id, RdfId(RdfId::RESOURCE, "machina:duration"), Raul::Atom((float)_duration)); + + writer.write(_id, + RdfId(RdfId::RESOURCE, "machina:enterAction"), + _enter_action->id()); + _enter_action->write_state(writer); + + _exit_action->write_state(writer); /*for (Node::Edges::const_iterator e = _outgoing_edges.begin(); e != _outgoing_edges.end(); ++e) |