Skip to main content

Action Rules for Programming Constraint Propagators and Interactive User Interfaces

  • Conference paper
  • First Online:
Book cover Web Knowledge Management and Decision Support (INAP 2001)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 2543))

Included in the following conference series:

  • 386 Accesses

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].

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 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.

    Google Scholar 

  2. 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.

    Article  Google Scholar 

  3. A. Borning, R. Lin, and K. Marriott: Constraint-Based Document Layout for the Web, ACM Multimedia Systems Journal, 2000.

    Google Scholar 

  4. M. Carlsson, G. Ottosson, and B. Carlson: An Open-ended Finite Domain Constraint Solver, Proc. Programming Languages and Logic Programming, pp.191–206, 1997.

    Google Scholar 

  5. P. Codognet and D. Diaz: Compiling Constraints in clp(FD), Journal of Logic Programming, 27(3), pp.185–226, 1996.

    Article  MATH  MathSciNet  Google Scholar 

  6. J. Cohen: Constraint Logic Programming Languages, Communications of ACM, Vol.33, No.7, pp.52–68, 1990.

    Article  Google Scholar 

  7. 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.

    Google Scholar 

  8. A. Colmerauer.: An Introduction to Prolog-III,Communications of ACM, Vol.33, No.7, 1990.

    Google Scholar 

  9. 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.

    Google Scholar 

  10. 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.

    Google Scholar 

  11. M. Dincbas, H. Simonis, P. van Hentenryck: Solving Large Combinatorial Problems in Logic Programming. Journal of Logic Programming, 8(1), pp.75–93, 1990.

    Article  MATH  Google Scholar 

  12. T.W. Fruhwirth: Theory and Practice of Constraint Handling Rules, Journal of Logic Programming, Vol.37, pp.95–138, 1998.

    Article  MathSciNet  Google Scholar 

  13. W. Harvey and P.J. Stuckey: Improving Propagation by Changing Constraint Representation, Constraints, An International Journal, to appear.

    Google Scholar 

  14. P. van Hentenryck: Constraint Satisfaction in Logic Programming. MIT Press, 1989.

    Google Scholar 

  15. C. Holzbaur: Meta-structures Vs. Attribute Variables in the Context of Extensible Unification, Proc. PLLP’92, LNCS 631, pp.260–268, 1992.

    Google Scholar 

  16. J. Jaffar and M. J. Maher, Constraint Logic Programming: A Survey, Journal of Logic Programming, 1994.

    Google Scholar 

  17. A.K. Mackworth: Constraint Satisfaction, In Encyclopedia of Artificial Intelligence, John Wiley & Sons, 205–211, 1986.

    Google Scholar 

  18. 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.

    Google Scholar 

  19. J.F. Puget and M. Leconte: Beyond the Glass Box: Constraints as Objects, Proc. International Logic Programming Symposium, pp.513–527, 1995.

    Google Scholar 

  20. K. Ueda, Guarded Horn Clauses, in Concurrent Logic Programming Languages, E. Shapiro, ed., MIT Press, 1991.

    Google Scholar 

  21. Ivan Sutherland, Sketchpad: A Man-Machine Graphical Communication System, IFIPS Proc. of the Spring Joint Computer Conference, 1963.

    Google Scholar 

  22. M.G. Wallace, Practical Applications of Constraint Programming, Constraints Journal, vol.1 no.1, Kluwer, 1996.

    Google Scholar 

  23. 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

    Article  Google Scholar 

  24. 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).

  25. N.F. Zhou: CGLIB: A Constraint-Based Graphics Library, Proc. ACM Symposium on Document Engineering, pp.28–37, 2001.

    Google Scholar 

  26. N.F. Zhou: Implementation of Propagation Rules for Set Constraints Revisited, 2002 (http://www.sci.brooklyn.cuny.edu/∼zhou/papers/clpset.pdf).

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics