Abstract
In this paper, we present a new language construct, called Action Rules (AR), and describe its application to the implementation of various constraint propagators and interactive graphical user interfaces. An action rule specifies a pattern for agents, an event pattern for events that can activate the agents, and an action that the agents carry out when activated. AR combines the goal-oriented execution model of logic programming with the event-driven execution model. This hybrid execution model facilitates programming interactions in applications such as constraint propagators and interactive user interfaces. A propagator for a constraint is an agent that maintains the consistency of the constraint and is activated by updates to the domain variables in the constraint. As graphics programming is concerned, an agent is an event handler that handles stimuli from the users. AR has been incorporated into B-Prolog (www.probp.com). It has been successfully employed in the implementation of several efficient constraint solvers [24],[26] and in the CGLIB, a high-level constraint-based graphics library [25].
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
A. Aggoun and N. Beldiceanu: Overview of the CHIP Compiler System, In Proc. of the 8th International Conference on Logic Programming, pp.775–789, MIT Press, 1991.
A. Borning: The Programming Language Aspects of ThingLab, a Constraint-Oriented Simulation Laboratory, ACM Transactions on Programming Languages and Systems, Vol.3, 353–387, 1981.
A. Borning, R. Lin, and K. Marriott: Constraint-Based Document Layout for the Web, ACM Multimedia Systems Journal, 2000.
M. Carlsson, G. Ottosson, and B. Carlson: An Open-ended Finite Domain Constraint Solver, Proc. Programming Languages and Logic Programming, pp.191–206, 1997.
P. Codognet and D. Diaz: Compiling Constraints in clp(FD), Journal of Logic Programming, 27(3), pp.185–226, 1996.
J. Cohen: Constraint Logic Programming Languages, Communications of ACM, Vol.33, No.7, pp.52–68, 1990.
A. Colmerauer.: Equations and In-equations on Finite and Infinite Trees, Proc. of the International Conference on Fifth Generation Computer Systems (FGCS’84), ICOT, 85–99, 1984.
A. Colmerauer.: An Introduction to Prolog-III,Communications of ACM, Vol.33, No.7, 1990.
I. Cruz, K. Marroitt, and P.V. Hentenryck: Special Issue on Constraints, Graphics, and Visualization, Eds., Constraints An International Journal, Vol.3, No.1, 1998.
M. Dincbas, P. van Hentenryck, H. Simonis, A. Aggoun, T. Graf, and F. Berthier: The Constraint Logic Programming Language CHIP, In Proceedings of the Fifth Generation Computer Systems, pp.693–702, ICOT, 1988.
M. Dincbas, H. Simonis, P. van Hentenryck: Solving Large Combinatorial Problems in Logic Programming. Journal of Logic Programming, 8(1), pp.75–93, 1990.
T.W. Fruhwirth: Theory and Practice of Constraint Handling Rules, Journal of Logic Programming, Vol.37, pp.95–138, 1998.
W. Harvey and P.J. Stuckey: Improving Propagation by Changing Constraint Representation, Constraints, An International Journal, to appear.
P. van Hentenryck: Constraint Satisfaction in Logic Programming. MIT Press, 1989.
C. Holzbaur: Meta-structures Vs. Attribute Variables in the Context of Extensible Unification, Proc. PLLP’92, LNCS 631, pp.260–268, 1992.
J. Jaffar and M. J. Maher, Constraint Logic Programming: A Survey, Journal of Logic Programming, 1994.
A.K. Mackworth: Constraint Satisfaction, In Encyclopedia of Artificial Intelligence, John Wiley & Sons, 205–211, 1986.
B.A. Myers, R.C. Miller, R. McDaniel, and A. Ferrency: Easily Adding Animations to Interfaces Using Constraints, Proc. ACM User Interface and Software Technology, 119–128, 1996.
J.F. Puget and M. Leconte: Beyond the Glass Box: Constraints as Objects, Proc. International Logic Programming Symposium, pp.513–527, 1995.
K. Ueda, Guarded Horn Clauses, in Concurrent Logic Programming Languages, E. Shapiro, ed., MIT Press, 1991.
Ivan Sutherland, Sketchpad: A Man-Machine Graphical Communication System, IFIPS Proc. of the Spring Joint Computer Conference, 1963.
M.G. Wallace, Practical Applications of Constraint Programming, Constraints Journal, vol.1 no.1, Kluwer, 1996.
B.V. Zanden and B.A. Myers: Demonstrational and Constraint-Based Techniques for Pictorially Specifying Application Objects and Behaviors, ACM Transactions on Computer-Human Interaction, 2(4):308–356, 1995
N.F. Zhou: Programming Finite-Domain Constraint Propagators in Action Rules, submitted, a preliminary version appears in Proc. Joint International Conference and Symposium on Logic Programming, 70–84, MIT Press, 1998 (http://www.sci.brooklyn.cuny.edu/∼zhou/papers/arule.pdf).
N.F. Zhou: CGLIB: A Constraint-Based Graphics Library, Proc. ACM Symposium on Document Engineering, pp.28–37, 2001.
N.F. Zhou: Implementation of Propagation Rules for Set Constraints Revisited, 2002 (http://www.sci.brooklyn.cuny.edu/∼zhou/papers/clpset.pdf).
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2003 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Zhou, NF. (2003). Action Rules for Programming Constraint Propagators and Interactive User Interfaces. In: Bartenstein, O., Geske, U., Hannebauer, M., Yoshie, O. (eds) Web Knowledge Management and Decision Support. INAP 2001. Lecture Notes in Computer Science(), vol 2543. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-36524-9_16
Download citation
DOI: https://doi.org/10.1007/3-540-36524-9_16
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-00680-0
Online ISBN: 978-3-540-36524-2
eBook Packages: Springer Book Archive