-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
from abc import ABC, abstractmethod | ||
|
||
|
||
class AnalyzerConfig: | ||
input: str # The input file | ||
output: str # The output file | ||
|
||
|
||
class IDataAnalyzer(ABC): | ||
def __init__(self) -> None: | ||
self.config = None | ||
|
||
@abstractmethod | ||
def analyze(self, log_file: str): | ||
def analyze(self, config: AnalyzerConfig): | ||
pass | ||
|
||
@abstractmethod | ||
def visualize(self, log_file: str): | ||
def visualize(self, config: AnalyzerConfig): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from .analyzer import IDataAnalyzer | ||
from .analyzer import (IDataAnalyzer, AnalyzerConfig) | ||
|
||
|
||
class Iperf3Analyzer(IDataAnalyzer): | ||
def analyze(self, log_file: str): | ||
def analyze(self, config: AnalyzerConfig): | ||
pass | ||
|
||
def visualize(self, log_file: str): | ||
def visualize(self, config: AnalyzerConfig): | ||
# Implement visualization logic for iperf3 logs | ||
# ... (visualization code) | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters