Mercurial > hg > Database > jungle-network
view src/alice/jungle/persistence/PersistentChangeList.java @ 86:bcaf28f8244d
Added PersistentChageList and PersistentJournalTest
author | one |
---|---|
date | Tue, 29 Oct 2013 16:52:12 +0900 |
parents | |
children | f142dd4abc74 |
line wrap: on
line source
package alice.jungle.persistence; import java.util.Iterator; import alice.jungle.operations.NetworkTreeOperationLog; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.persistent.ChangeList; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.TreeOperation; public class PersistentChangeList implements ChangeList { public NetworkTreeOperationLog log; public String treeName; public String uuid; public PersistentChangeList(NetworkTreeOperationLog _log) { log = _log; treeName = _log.getTreeName(); uuid = _log.getUUID(); } public PersistentChangeList(PersistentChangeSet cs) { treeName = cs.getTreeName(); uuid = cs.uuid(); log = new NetworkTreeOperationLog(cs.getChangeList()); } @Override public Iterator<TreeOperation> iterator() { return log.iterator(); } public NetworkTreeOperationLog getTreeOperationLog() { return log; } public String getTreeName() { return treeName; } public String getUUID() { return uuid; } }