new method to test if a particular file is or is related to the target of a lock
[vamsas.git] / src / uk / ac / vamsas / client / simpleclient / Lock.java
index a124745..bd968fb 100644 (file)
@@ -34,6 +34,13 @@ public abstract class Lock {
     target = lockfile;
   }
   /**
+   * test whether the given file is a target or related to the lock
+   * on the target file.
+   * @param afile a file
+   * @return true if target is locked and afile is related to target
+   */
+  public abstract boolean isTargetLockFile(File afile);
+  /**
    * 
    * @return true if lock is held on the target
    */