Document: SCL: An Artificial Chemistry in Swarm

next 7 Conclusion
up 6 SCL Design Notes
gif 6.7 Access to Random State?

6.8 Agent Graphics

The SCL model has five distinct classes of agents (bonds, holes, S, K, L) which must be displayed on a 2D raster. Bonds and L particles have further variations in how they should be displayed (four bond orientations, stable versus disintegrating L particles, L versus L tex2html_wrap_inline1231 particles).

In SCL v0.04 these display issues have been addressed in extremely crude ways. Each agent (and variation) is represented by some form of bitmap, but these bitmaps are generated, on the fly, pixel-by-pixel, by dedicated, hard wired, code. This is the end point of an incremental design process, in which the display facilities were gradually evolved and made more complex. The final result is functional; but it is also extremely cumbersome and fragile (i.e. it is difficult to modify without causing unintentional side-effects). Performance is probably also very poor.

However: in the current release of Swarm, the only documented methods for drawing on rasters are for coloring individual pixels, or rectangles. This is a significant limitation. I would hope that future releases will provide more sophisticated 2D graphics primitives--in particular, making it easy to display arbitrary bitmaps. In the meantime, SCL v0.04 graphic handling is not a good example to emulate.



next 7 Conclusion
up 6 SCL Design Notes
gif 6.7 Access to Random State?

Document: SCL: An Artificial Chemistry in Swarm

Copyright © 1997 All Rights Reserved.
Timestamp: Tue Dec 31 19:40:38 GMT 1996

mcmullin@eeng.dcu.ie