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 4
4
entries recording in mesa. The Memory class is a manager between the ShortTermMemory
5
5
(dque data structure) and LongTermMemory (hash map).
6
6
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
-
14
7
The module contains three main components:
15
8
- Priority: An enumeration defining event priority levels (HIGH, DEFAULT, LOW)
16
9
- SimulationEvent: A class representing individual events with timing and execution details
17
10
- EventList: A heap-based priority queue managing the chronological ordering of events
18
11
19
- The implementation supports both pure discrete event simulation and hybrid approaches
20
- combining agent-based modeling with event scheduling.
21
12
"""
22
13
23
14
from .memory import LongTermMemory , Memory , MemoryEntry , ShortTermMemory
You can’t perform that action at this time.
0 commit comments