Android Open Source - CalWatch test Cl Strength

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.8 1999/04/20 00:26:55 gjb Exp $
////from w  w  w  . j a  v  a 2s .  c o  m
// Cassowary Incremental Constraint Solver
// Original Smalltalk Implementation by Alan Borning
// This C++ Implementation by Greg J. Badros, <>
// (C) 1998, 1999 Greg J. Badros and Alan Borning
// See ../LICENSE for legal details regarding this software
// testClStrength

package EDU.Washington.grad.gjb.cassowary;

class testClStrength {
  public static void main(String[] args) {
    ClSymbolicWeight clsw = new ClSymbolicWeight(0.0,1.0,0.0);
    ClSymbolicWeight clsw2 = new ClSymbolicWeight(2.0,0.5,0.5);
    ClSymbolicWeight clsw3 = new ClSymbolicWeight(2.0,0.5,0.5);
    ClSymbolicWeight clsw4 = new ClSymbolicWeight(2.0,0.4,0.5);


    ClStrength cls = new ClStrength("cls",clsw);
    ClStrength cls2 = new ClStrength("cls2", clsw.times(2));

Java Source Code List