-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestClStrength.java
30 lines (25 loc) · 985 Bytes
/
testClStrength.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// $Id$
//
// Cassowary Incremental Constraint Solver
// Original Smalltalk Implementation by Alan Borning
// This C++ Implementation by Greg J. Badros, <[email protected]>
// 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);
}
}