-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathagents.py
49 lines (41 loc) · 1.77 KB
/
agents.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 7 11:59:45 2021
@author: ReileyMeeks
"""
class Agents :
def __init__(self, name, environment, actuators, sensors, perfMet):
self.name = name
self.environment = environment
self.actuators = actuators
self.sensors = sensors
self.perfMet = perfMet
def printInfo(self):
print("Name: ", self.name,
"\nEnvironment: ", self.environment,
"\nActuators: ", self.actuators,
"\nSensors: ", self.sensors,
"\nperfMet: ", self.perfMet, "\n")
print('\n')
agent1 = Agents("Grammarly", "Text Editor", ["Displayed errors within text editor" ,
"Text editor code"],
["Scanner"], ["Percentance of errors caught"])
agent2 = Agents("Roomba", "Indoor Flooring", ["Vacuum", "Mop"],
["Camera", "Infrared and Photocell sensors", "Bump sensors"],
["Cleanliness of Floor"])
agent3 = Agents("Siri", "Phone", ["Speaker", "Display", "Device Actions"],
["Microphone", "Siri Button", "Home button"],
["Accuracy of intended action", "Response Time",
"Lack of 'Glitchs'"])
agent4 = Agents("Uno AI", "UNO Video Game", ["Display"],
["Current card on table", "Current cards in hand", "User Input"],
["Speed", "Difficulty"])
agent5 = Agents("Maze Solver", "Maze Application", ["Display", "Maze Generation"],
["Directional Movement", "Maze Barriers"],
["Maze Solvable", "Solve/Generation time"])
agent1.printInfo() #Grammarly
agent2.printInfo() #Roomba
agent3.printInfo() #Siri
agent4.printInfo() #Uno AI
agent5.printInfo() #Maze Solver