File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 44entries recording in mesa. The Memory class is a manager between the ShortTermMemory
55(dque data structure) and LongTermMemory (hash map).
66
7- Key features:
8-
9- - Priority-based event ordering
10- - Weak references to prevent memory leaks from canceled events
11- - Efficient event insertion and removal using a heap queue
12- - Support for event cancellation without breaking the heap structure
13-
147The module contains three main components:
158- Priority: An enumeration defining event priority levels (HIGH, DEFAULT, LOW)
169- SimulationEvent: A class representing individual events with timing and execution details
1710- EventList: A heap-based priority queue managing the chronological ordering of events
1811
19- The implementation supports both pure discrete event simulation and hybrid approaches
20- combining agent-based modeling with event scheduling.
2112"""
2213
2314from .memory import LongTermMemory , Memory , MemoryEntry , ShortTermMemory
You can’t perform that action at this time.
0 commit comments