add: agent template
This commit is contained in:
8
agent/src/domain/accelerometer.py
Normal file
8
agent/src/domain/accelerometer.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class Accelerometer:
|
||||
x: int
|
||||
y: int
|
||||
z: int
|
||||
12
agent/src/domain/aggregated_data.py
Normal file
12
agent/src/domain/aggregated_data.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
from datetime import datetime
|
||||
from domain.accelerometer import Accelerometer
|
||||
from domain.gps import Gps
|
||||
|
||||
|
||||
@dataclass
|
||||
class AggregatedData:
|
||||
accelerometer: Accelerometer
|
||||
gps: Gps
|
||||
time: datetime
|
||||
7
agent/src/domain/gps.py
Normal file
7
agent/src/domain/gps.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class Gps:
|
||||
longitude: float
|
||||
latitude: float
|
||||
Reference in New Issue
Block a user