🐐
This commit is contained in:
Binary file not shown.
@@ -249,6 +249,26 @@
|
||||
|
||||
To address the identified limitations of MEOW and to expand its capabilities, I will be incorporating network event triggers into the existing event-based scheduler, to supplement the current file-based event triggers. My method focuses on leveraging Python's socket library to enable the processing of network events. The following subsections detail the specific methodologies employed in expanding the codebase, the design of the network event trigger mechanism, and the integration of this mechanism into the existing MEOW system.
|
||||
|
||||
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\begin{tikzpicture}[
|
||||
element/.style={draw, rectangle, rounded corners, minimum height = 1cm},
|
||||
arrow/.style={-Triangle, thick,shorten >=4pt}
|
||||
]
|
||||
\node[element,text width=4cm,align=center,fill=blue!30!white] at (0,0) (mon) {Network Monitor};
|
||||
\node[element,fill=purple!20!white] at (-2,-3) (l1) {Listener};
|
||||
\node[element,fill=purple!20!white] at (0,-3) (l2) {Listener};
|
||||
\node[element,fill=purple!20!white] at (2,-3) (l3) {Listener};
|
||||
|
||||
\draw[arrow] (mon) -- (l1);
|
||||
\draw[arrow] (mon) -- (l2);
|
||||
\draw[arrow] (mon) -- (l3);
|
||||
\end{tikzpicture}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
|
||||
\subsection{Design of the network event pattern}
|
||||
In the implementation of a pattern for network events, a key consideration was to integrate it seamlessly with the existing MEOW codebase. This required designing the pattern to behave similarly to the file event pattern when interacting with other elements of the scheduler. A central principle in this design was maintaining the loose coupling between patterns and recipes, minimizing direct dependencies between separate components. While this might not be possible for every theoretical recipe and pattern, designing for it could greatly improve future compatibility.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user