Object layer

BAP Online Manuals : Bap Language Tutorial : BAP Communication Layers : Object layer
Previous: The Client-Server Layer
Next: Compiler Reference Manual

2.4.5. Object layer

PROLOG servers serve as processing resources related to objects. This layer overcomes the problems that arise because of the fact that server do not have a durable 'state' (they loose their internal memory after a task is finished). Available services: System resource management, remote procedure calls, automatic load balancing and many more. Object class hierarchies and inheritance are under development and will be fully available with the next version of BAP.

The object layer is not part of this BAP version. Because some of our demonstration programs are based on the object layer, these demonstrations contain the necessary additions by themselfs. So in this version the object layer is build on top of the client server layer, instead of being on one level with it, like shown above. These routienes are based on several system predicates, which are not explained in this versions library description. These are:

create_object_db()
kill_object_db()
claim_object_db()
release_object_db()
set_object_db()

These predicates are used to create, delete, and to use additional databases, called objects. By calling claim_object_db() or set_object_db(), the processes database is replaced by the given objects database. This is the base for several approaches of object orientated programming in Prolog.

Related topics:

Low Level Router and 'C' Layer , PROLOG Process Layer , Client-Server layer


BAP Online Manuals : Bap Language Tutorial : BAP Communication Layers : Object layer
Previous: The Client-Server Layer
Next: Compiler Reference Manual