Extract base DataModel class

This commit is contained in:
Christophe Bedard 2019-07-29 15:48:49 +02:00
parent 0b5faf3862
commit c958ddc8b6
3 changed files with 20 additions and 6 deletions

View file

@ -11,3 +11,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Base data model module."""
class DataModel():
"""
Container with pre-processed data for an analysis to use.
Contains data for an analysis to use. This is a middleground between trace events data and the
output data of an analysis. It uses pandas `DataFrame` directly.
"""
pass

View file

@ -16,12 +16,14 @@
import pandas as pd
from . import DataModel
class CpuTimeDataModel():
class CpuTimeDataModel(DataModel):
"""
Container to model pre-processed CPU time data for analysis.
Contains data for an analysis to use. It uses pandas DataFrames directly.
Contains every duration instance.
"""
def __init__(self) -> None:

View file

@ -16,14 +16,14 @@
import pandas as pd
from . import DataModel
class RosDataModel():
class RosDataModel(DataModel):
"""
Container to model pre-processed ROS data for analysis.
Contains data for an analysis to use. This is a middleground between ROS userspace trace
events data and the output data of an analysis. This aims to represent the data in a
ROS-aware way. It uses pandas DataFrames directly.
This aims to represent the data in a ROS-aware way.
"""
def __init__(self) -> None: