# -*- coding: utf-8 -*-
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE', which is part of this source code package.
#
#
[docs]
class OnlineDataBase(object):
"""
Class containing an OnlineDataBase
Attributes
----------
solutionName : str
the solutionName whose computation is reduced
"""
def __init__(self, solutionName):
assert isinstance(solutionName, str)
self.solutionName = solutionName
[docs]
def GetSolutionName(self):
"""
Returns
-------
str
the solutionName whose computation is reduced
"""
return self.solutionName
def __str__(self):
res = "I am an OnlineDataBase, try instanciating a particular OnlineData"
return res
if __name__ == "__main__":# pragma: no cover
from Mordicus import RunTestFile
RunTestFile(__file__)