W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2008

2006/unicorn/org/w3c/unicorn/tasklisttree TLTNode.java,1.4,1.5

From: Florent Batard via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 26 Aug 2008 15:27:52 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1KY0SW-0002Fd-Fj@lionel-hutz.w3.org>

Update of /sources/public/2006/unicorn/org/w3c/unicorn/tasklisttree
In directory hutz:/tmp/cvs-serv8628/org/w3c/unicorn/tasklisttree

Modified Files:
	TLTNode.java 
Log Message:
Update for the management of the tasklisttree

Index: TLTNode.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/tasklisttree/TLTNode.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- TLTNode.java	21 Aug 2008 08:38:28 -0000	1.4
+++ TLTNode.java	26 Aug 2008 15:27:50 -0000	1.5
@@ -15,7 +15,7 @@
  */
 public class TLTNode {
 	
-	private int level;
+	private int NodeID;
 	private ArrayList<TLTExec> executionList; // list of observations to perform
 	private ArrayList<TLTIf> ifList; // list of conditions and child nodes
 	private static final Log logger = LogFactory.getLog("org.w3c.unicorn.tasklisttree");
@@ -28,7 +28,7 @@
 	 */
 	public TLTNode() {
 		TLTNode.logger.trace("Constructor");
-		level = 1;
+		NodeID=0;
 		executionList = new ArrayList<TLTExec>();
 		ifList = new ArrayList<TLTIf>();
 	}
@@ -39,12 +39,12 @@
 	 * @param executionList The list of executions for the node
 	 * @param ifList The list of tltIf for the node
 	 */
-	public TLTNode(int level,ArrayList<TLTExec> executionList, ArrayList<TLTIf> ifList) {
+	public TLTNode(int NodeID,ArrayList<TLTExec> executionList, ArrayList<TLTIf> ifList) {
 		TLTNode.logger.trace("Constructor");
-		TLTNode.logger.trace("Level : " + level);
+		TLTNode.logger.trace("NodeID : " + NodeID);
 		TLTNode.logger.trace("Number of executions : " + executionList.size());
 		TLTNode.logger.trace("Number of ifs : " + ifList.size());
-		this.level = level;
+		this.NodeID = NodeID;
 		this.executionList  = executionList;
 		this.ifList = ifList;
 	}
@@ -54,9 +54,9 @@
 	 * 
 	 * @param level The level of execution
 	 */
-	public void setLevel(int level) {
-		TLTNode.logger.trace("setLevel : " + level);
-		this.level = level;
+	public void setID(int NodeID) {
+		TLTNode.logger.trace("setID : " + NodeID);
+		this.NodeID = NodeID;
 	}
 	
 	/**
@@ -100,13 +100,13 @@
 	 * 
 	 * @return The level of execution
 	 */
-	public int getLevel() {
+	public int getID() {
 		TLTNode.logger.trace("getLevel");
-		return level;
+		return NodeID;
 	}
 
 	public String toString(){
-		String res=new String("TLTNode level"+this.level+" ");
+		String res=new String("TLTNode level"+this.NodeID+" ");
 			for(TLTIf conds : this.ifList)
 				res+=conds.toString();
 			for(TLTExec exec : this.executionList)
Received on Tuesday, 26 August 2008 15:28:25 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:33 UTC