# -*- coding: utf-8 -*-

import os
from datetime import datetime
from model.Serializable import Serializable

class Study(Serializable):
    def __init__(self):
        # Serialization information
        super(Study, self).__init__("")
        self.filename = ""

        # Study general information
        self.name = ""
        self.description = ""
        self.solver = ""

        self.creation_date = datetime.now()
        self.last_modification_date = datetime.now()
        self.last_save_date = datetime.now()

        # Study data
        self.data = {}

    @classmethod
    def new(cls):
        return cls()

    @classmethod
    def new(cls, name, description, solver):
        me = cls()
        me.name = name
        me.description = description
        me.solver = solver
        return me