Cassowary is an incremental constraint solving toolkit that efficiently solves systems of linear equalities and inequalities. Constraints may be either requirements or preferences. Client code specifies the constraints to be maintained, and the solver updates the constrained variables to have values that satisfy the constraints. Version 0.50 of the solving toolkit adds support for a one-way finite domain subsolver.
This project is concerned with offering a ruby interface for the original implementation of cassowary in C.
Please consider the current version as software that is still not finished.
Currently we can only say that “it works for us”…
We are using this constraint solver to generate graphical user interfaces with the Multimodal INTeraction framework (MINT).
require “rubygems” require “cassowary” solver = Cassowary::ClSimplexSolver.new
size = Cassowary::ClPoint.new()
Requires libcassowary debian package available for
Ubuntu Lucid 10.0.4_02 LTS 64 Bit packages.multi-access.de/lucid/libcassowary0_0.70-1_amd64.deb
Ubuntu Lucid 10.0.4_02 LTS 64 Bit packages.multi-access.de/lucid/libcassowary0_0.70-1_i386.deb
or build yourself. Sourcecode is available from original site
Copyright Cassowary Constraint Solver: Greg J. Badros, Alan Borning
sudo gem install cassowary
Licensed under the Lesser/Library GPL v2.1 or any version above.
Copyright © 2011 Sebastian Feuerstack
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.