Android Open Source - CalWatch Cl Abstract Variable

From Project

Back to project page CalWatch.


The source code is released under:

GNU General Public License

If you think the Android project CalWatch listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

// $Id:,v 1.14 2001/04/02 14:43:24 gjb Exp $
///* w ww  . ja  va 2s. c  o  m*/
// Cassowary Incremental Constraint Solver
// Original Smalltalk Implementation by Alan Borning
// This Java Implementation by Greg J. Badros, <>
// (C) 1998, 1999 Greg J. Badros and Alan Borning
// See ../LICENSE for legal details regarding this software
// ClAbstractVariable

package EDU.Washington.grad.gjb.cassowary;

import java.lang.*;

public abstract class ClAbstractVariable
  public ClAbstractVariable(String name)
      hash_code = iVariableNumber;
      _name = name;

  public ClAbstractVariable()
      hash_code = iVariableNumber;
      _name = "v" + iVariableNumber;

  public ClAbstractVariable(long varnumber, String prefix)
      hash_code = iVariableNumber;
      _name = prefix + varnumber;

  public String name()
    { return _name; }
  public void setName(String name)
    { _name = name; }
  public boolean isDummy()
    { return false; }
  public abstract boolean isExternal();

  public abstract boolean isPivotable();

  public abstract boolean isRestricted();

  public abstract String toString();

  public static int numCreated() 
    { return iVariableNumber; }

  public final int hashCode() { return hash_code; }

  private String _name;

  private int hash_code;

  private static int iVariableNumber;


Java Source Code List