diff src/alice/jungle/persistence/PersistentChangeList.java @ 87:f142dd4abc74

Implemented getTreeName and uuid method in some classes
author one
date Tue, 05 Nov 2013 08:41:12 +0900
parents bcaf28f8244d
children 0c98717f186e
line wrap: on
line diff
--- a/src/alice/jungle/persistence/PersistentChangeList.java	Tue Oct 29 16:52:12 2013 +0900
+++ b/src/alice/jungle/persistence/PersistentChangeList.java	Tue Nov 05 08:41:12 2013 +0900
@@ -5,6 +5,7 @@
 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.impl.logger.TreeOperationLog;
 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.TreeOperation;
 
 public class PersistentChangeList implements ChangeList {
@@ -13,6 +14,12 @@
 	public String treeName;
 	public String uuid;
 
+	public PersistentChangeList(String _uuid, String _treeName, TreeOperationLog _log) {
+		uuid = _uuid;
+		treeName = _treeName;
+		log = new NetworkTreeOperationLog(_log);
+	}
+	
 	public PersistentChangeList(NetworkTreeOperationLog _log) {
 		log = _log;
 		treeName = _log.getTreeName();
@@ -38,7 +45,7 @@
 		return treeName;
 	}
 	
-	public String getUUID() {
+	public String uuid() {
 		return uuid;
 	}