Mercurial > hg > Members > nobuyasu > jungle-network
view src/main/java/alice/jungle/persistent/PersistentChangeSet.java @ 135:2e8034524259
Added NetworkJournal and SingletonMessageFromAlice class
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 12 Jan 2014 06:18:37 +0900 (2014-01-11) |
parents | f9e29a52efd3 |
children | 6f104ab4eb81 |
line wrap: on
line source
package alice.jungle.persistent; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Node; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.persistent.ChangeList; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.ChangeSet; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.TreeOperation; public class PersistentChangeSet implements ChangeSet { private final Node root; private final ChangeSet previous; private final ChangeList changeList; private final String uuid; private final long revision; private final String treeName; public PersistentChangeSet(Node _node,ChangeSet _prev,ChangeList _log,String _uuid, String _treeName, long _revision) { root = _node; previous = _prev; changeList = _log; uuid = _uuid; revision = _revision; treeName = _treeName; } @Override public Node getRoot() { return root; } @Override public ChangeSet prev() { return previous; } @Override public ChangeList getChangeList() { return changeList; } @Override public String uuid() { return uuid; } @Override public long revision() { return revision; } @Override public Iterable<TreeOperation> getOperations() { return changeList; } public String getTreeName() { return treeName; } }