-
Notifications
You must be signed in to change notification settings - Fork 0
Velluscinum Jason Hello
Velluscinum for Jason | Wiki |
---|
To install Jason-CLI on your computer, see the APT Package for Jason CLI
-
Create a jason project
jason app create helloVelluscinumWithJason
-
Create a directory lib in the project folder and download the latest velluscinum.jar file into this directory, using the command below:
wget https://github.com/chon-group/Velluscinum/releases/latest/download/velluscinum.jar -P helloVelluscinumWithJason/lib/
-
Edit the agent file helloVelluscinumWithJason/src/agt/bob.asl, including the content below:
// Agent bob in project helloVelluscinumWithJason /* Initial beliefs and rules */ bigchainDB("http://testchain.chon.group:9984/"). aliceKey("AFL794vuN2D4uWzdJsnbLtMRSz1b9bvmYxKy8RoFntKB"). /* Initial goals */ !start. /* Plans */ +!start <- .print("Creating a Wallet"); .velluscinum.buildWallet(myWallet); .wait(myWallet(PrivateKey,PublicKey)); .print("Creating a NFT"); ?bigchainDB(Server); .velluscinum.deployNFT(Server, PrivateKey,PublicKey, "name:Meninas;author:Silva y Velázquez;place:Madrid;year:1656", "location:Madrid;value_eur:25000000;owner:Bob Agent", myNFT); .wait(myNFT(AssetID)); .print("NFT registered --> ",Server,"api/v1/assets/?search=",AssetID); .print("Tranfering the NFT"); ?aliceKey(AliceKey); .velluscinum.transferNFT(Server, PrivateKey,PublicKey, AssetID, AliceKey, "value_eur:30000000;owner:Alice;location:Rio de Janeiro", transactionTo(alice)); .wait(transactionTo(alice,TransferID)); .print("NFT transferred --> ",Server,"api/v1/transactions/",TransferID); .
jason helloVelluscinumWithJason/helloVelluscinumWithJason.mas2j
Velluscinum is licensed under a Creative Commons Attribution 4.0 International License. The licensor cannot revoke these freedoms as long as you follow the license terms:
- Attribution — You must give appropriate credit like below:
Mori Lazarin, N., Machado Coelho, I., Pantoja, C.E., Viterbo, J. (2023). Velluscinum: A Middleware for Using Digital Assets in Multi-agent Systems. In: Mathieu, P., Dignum, F., Novais, P., De la Prieta, F. (eds) Advances in Practical Applications of Agents, Multi-Agent Systems, and Cognitive Mimetics. The PAAMS Collection. PAAMS 2023. Lecture Notes in Computer Science(), vol 13955. Springer, Cham. DOI: https://doi.org/10.1007/978-3-031-37616-0_17
Cite using Bibtex
@InProceedings{velluscinum,
author="Mori Lazarin, Nilson
and Machado Coelho, Igor
and Pantoja, Carlos Eduardo
and Viterbo, Jos{\'e}",
editor="Mathieu, Philippe
and Dignum, Frank
and Novais, Paulo
and De la Prieta, Fernando",
title="{Velluscinum: A Middleware for Using Digital Assets in Multi-agent Systems}",
doi="10.1007/978-3-031-37616-0_17",
booktitle="Advances in Practical Applications of Agents, Multi-Agent Systems, and Cognitive Mimetics. The PAAMS Collection",
year="2023",
publisher="Springer Nature Switzerland",
address="Cham",
pages="200--212",
isbn="978-3-031-37616-0"
}