Coder Social home page Coder Social logo

autonode.js's Introduction

Autonomous Software Agents - Project

University of Trento - Trento, 2022

Davide Lusuardi - [email protected]

Description

The scenario proposed implements a smart house composed of two floors, the garage and the garden. The lights are present in each room and for each window there is an electric shutter. A television is present in the living room with some lights dedicated and the garage door is electric. A solar panel installation of 2 kW is present on the roof.

Classes

Devices and People

class Person

Representation of a person.
Methods: moveTo() another room.

Representation of a light.
Methods: turnOn() and turnOff().

Representation of a shutter.
Methods: goUp() and goDown().

Representation of the electric garage door.
Methods: open() and close().

Representation of the television.
Methods: turnOn() and turnOff().

Representation of the solar panels.
Methods: activate() and deactivate().

Goals and Intentions

Goal: keep detecting people in the rooms.

Implementation of the goal PersonDetectionGoal.

Goal: keep sensing the light brightness in the rooms.

Implementation of the goal BrightnessSensingGoal.

Goal: control the main lights of each room: the light is turned on when there is not enough sunlight and there is someone in the room.

Implementation of the goal LightControlGoal.

Goal: control the shutters of each room: each shutter should go up at 7.00 AM and go down at 9.00 PM.

Implementation of the goal ShutterControlGoal.

Goal: control the garage door: close it at 9.00 PM if open.

Implementation of the goal GarageDoorControlGoal.

Goal: control the TV and the lights near the TV: turn on the TV in the morning and after dinner.

Implementation of the goal TelevisionControlGoal.

Goal: monitor the solar panel status.

Implementation of the goal SolarPanelMonitorGoal.

Goal: monitor the energy consumption and production.

Implementation of the goal EnergyMonitorGoal.

Changelog

  • src/utils/Observable.js: add an id to each observer to be able to have many observers for each key.
  • src/utils/Clock.js: implementation of the methods getTime() and getIncrement() that permit to obtain a copy of the current time and the time increment of the clock at each time step.
  • src/bdi/Beliefset.js: implementation of the method matchingLiterals(literal_pattern) that permits to obtain the literals matching the pattern.

autonode.js's People

Contributors

davidelusuardi avatar marco89mr avatar marcorobol avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.