Commit ·
a216787
1
Parent(s): 5861617
commit files to HF hub
Browse files
data.csv
CHANGED
|
@@ -40,3 +40,19 @@ class MyAgent(ACTR):
|
|
| 40 |
goal.set(""stop"") # set goal buffer to direct program flow
|
| 41 |
def stop_production(goal=""stop""):
|
| 42 |
self.stop() # stop the agent",2023-08-21 06:44:14.712929
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
goal.set(""stop"") # set goal buffer to direct program flow
|
| 41 |
def stop_production(goal=""stop""):
|
| 42 |
self.stop() # stop the agent",2023-08-21 06:44:14.712929
|
| 43 |
+
new,"class MyEnv(Model):
|
| 44 |
+
pass
|
| 45 |
+
class MyAgent(ACTR):
|
| 46 |
+
production_time = 0.05
|
| 47 |
+
production_sd = 0.01
|
| 48 |
+
production_threshold = -20
|
| 49 |
+
|
| 50 |
+
goal = Buffer() # Creating the goal buffer for the agent
|
| 51 |
+
|
| 52 |
+
def init(): # this rule fires when the agent is instantiated.
|
| 53 |
+
goal.set(""sandwich bread"") # set goal buffer to direct program flow
|
| 54 |
+
def bread_bottom(goal=""sandwich bread""): # if goal=""sandwich bread"" , fire rule
|
| 55 |
+
print (""I have a piece of bread222"")
|
| 56 |
+
goal.set(""stop"") # set goal buffer to direct program flow
|
| 57 |
+
def stop_production(goal=""stop""):
|
| 58 |
+
self.stop() # stop the agent",2023-08-21 06:44:42.874698
|