View Javadoc

    1   package baseCode.common;
    2
    3   /***
    4    *
    5    *
    6    * <hr>
    7    * <p>Copyright (c) 2004 Columbia University
    8    * @author pavlidis
    9    * @version $Id: Visitable.java,v 1.1 2004/07/29 08:38:49 pavlidis Exp $
    10   */
    11  public abstract class Visitable implements Comparable {
    12
    13     private boolean mark;
    14
    15     public boolean isVisited() {
    16        return mark;
    17     }
    18
    19     public void mark() {
    20        mark = true;
    21     }
    22
    23     public void unMark() {
    24        mark = false;
    25     }
    26
    27  }