PAI-NET is a distributed private network of bots, allows transfer PAI-CODE protocol commands to all the bots within the same PAI-NET.
PAI-NET networks components:
PAI Communication Manager
This module is responsible for all PAI-BOTS communications.
PAI-BOT communication protocol is PAI-CODE, meaning PAI-BOT can receive and send messages (PAI-CODE commands) via the PAI-CODE port.
Every PAI-BOT is registered to PAI-NET decentralized messaging system to support better control and network scalability.
The PAI-NET Message encapsulates the message that the bots sending and receiving.
The message defines the following structure:
|message-id||Text||The message identifier (UUID)|
|from-bot-id||Text||The ID of the sender bot|
|to-bot-id||Text||The receiver bot ID|
|creation-date||Date||The creation date time stamp|
|delivery-date||Date||The date when the message received|
|expiration-date||Date||expiration date for the message, if the message is being received after the expiration date it will not be executed|
|pai-code||Text||The actual message PAI-CODE command that should be executed|
PAI-NET is a decentralized network therefore, the messaging system should be decentralized especially within the data layer which is mostly messages.
In order to support decentralization PAI introduces a special network architecture which comprised of special bots called Net-Bot. The Net-Bot uses like a small post office that enables communication.
PAI-CONSOLE is the desktop of the Bot distributed O/S, it enables system admins to control, program, maintain the bots.
The PAI-CONSOLE is a PAI-BOT Module that can be learned by any bot.