2016-02-21 03:24:54 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
# -*- coding: utf-8 -*-
|
2016-02-21 03:32:22 +02:00
|
|
|
# @author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
2016-02-21 03:24:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Scope(object):
|
|
|
|
"""docstring for Scope"""
|
|
|
|
def __init__(self):
|
|
|
|
super(Scope, self).__init__()
|
|
|
|
self.customMap = {}
|
|
|
|
self.configurationManager=None
|
2016-02-21 03:32:22 +02:00
|
|
|
self.logger=None
|
2016-02-21 03:24:54 +02:00
|
|
|
|
|
|
|
def getCustomMap(self):
|
|
|
|
return self.customMap
|
|
|
|
|
|
|
|
def putCustomMap(self,name,value):
|
2016-02-21 03:32:22 +02:00
|
|
|
self.custom[str(name)]=value
|
|
|
|
|
|
|
|
def getCustomParam(self,name):
|
|
|
|
return self.customMap[str(name)]
|
2016-02-21 03:24:54 +02:00
|
|
|
|
|
|
|
def getConfigurationManager(self):
|
|
|
|
return self.configurationManager
|
|
|
|
|
|
|
|
def serConfigurationManager(self,configurationManager):
|
|
|
|
self.configurationManager = configurationManager
|
2016-02-21 03:32:22 +02:00
|
|
|
|
|
|
|
def getLogger(self):
|
|
|
|
return self.logger
|
|
|
|
|
|
|
|
def setLogger(self,logger):
|
|
|
|
self.logger = logger
|