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.
// $Id: testClStrength.java,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, <gjb@cs.washington.edu> // http://www.cs.washington.edu/homes/gjb // (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); System.out.println(ClStrength.required); System.out.println(clsw2.asDouble()); ClStrength cls = new ClStrength("cls",clsw); System.out.println(cls); ClStrength cls2 = new ClStrength("cls2", clsw.times(2)); System.out.println(cls2); } }