Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Build and test a multi-agent system in AgentSpeak using Jason to model the hygiene practices during the pandemic.

Notifications You must be signed in to change notification settings

JinhangZhu/mas-covid19-with-agentspeak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safe shopping during COVID-19 outbreak

The following contents give an brief introduction to the usage of the MAS with Jason. However, for more details about the scenario, please check the report.

Why am I doing this?

This is the repository related to a coursework assignment of the course Intelligent Information Systems1.

Variants of base beliefs

Base beliefs: All protective measures (Social distancing, timely sanitation and the number of customers at 2) are taken.

In customer1.asl:

/* Initial beliefs*/
infected(coronavirus).	
porter(mike).			
thresh_cough(0.5).		
bel_cough(1.0).			

In customer2.asl:

porter(mike).					
thresh_social_distancing(0.5).	
bel_social_distancing(1.0).		

In staff.asl:

limit(2).					
now(1).						
predecessor(john).			
sanitation(tescoExpress).

One customer at a time

Based on base beliefs,

  • Change the line limit(2) in staff.asl to limit(1).

Expected result:

[rachel] Shop is clean. Believed not to be infected yet.

No sanitation and one customer at a time

Based on base beliefs,

  • Change the line limit(2) in staff.asl to limit(1).
  • Comment the line sanitation(tescoExpress)..

Expected result:

[rachel] Get infected with the coronavirus

No social distancing

Based on base beliefs,

  • Change the value 1.0 of the line bel_social_distancing(1.0). to a value < 0.5, for example, 0.0.

Expected result:

[rachel] Not following social distancing from john. Get infected with the coronavirus

No social distancing but no cough

Based on base beliefs,

  • Change the value 1.0 of the line bel_social_distancing(1.0). to a value < 0.5, for example, 0.0.
  • Change the value 1.0 of the line bel_cough(1.0). to a value < 0.5, for example, 0.0.

Expected result:

[rachel] Shop is clean. Believed not to be infected yet.

References

Footnotes

  1. The Department of Engineering Mathematics at the University of Bristol. Course link

About

Build and test a multi-agent system in AgentSpeak using Jason to model the hygiene practices during the pandemic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages