本文整理汇总了Python中pyon.util.containers.DotDict.ByRR方法的典型用法代码示例。如果您正苦于以下问题:Python DotDict.ByRR方法的具体用法?Python DotDict.ByRR怎么用?Python DotDict.ByRR使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyon.util.containers.DotDict
的用法示例。
在下文中一共展示了DotDict.ByRR方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: DotDict
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import ByRR [as 别名]
@author Ian Katz
"""
from ion.util.enhanced_resource_registry_client import EnhancedResourceRegistryClient
from ooi.logging import log
from pyon.agent.agent import ResourceAgentClient
from pyon.core.bootstrap import IonObject
from pyon.core.exception import NotFound, Unauthorized, BadRequest
from interface.objects import ComputedValueAvailability, ComputedIntValue, ComputedDictValue, ComputedListValue
from interface.objects import AggregateStatusType, DeviceStatusType
from pyon.ion.resource import RT, PRED
from pyon.util.containers import DotDict
# possible ways of determining the type of a device driver
DriverTypingMethod = DotDict()
DriverTypingMethod.ByRR = 1
DriverTypingMethod.ByAgent = 2
DriverTypingMethod.ByException = 3
class AgentStatusBuilder(object):
def __init__(self, process=None):
"""
the process should be the "self" of a service instance
"""
assert process
self.process = process
self.dtm = DriverTypingMethod.ByRR
self.RR2 = None
# make an internal pointer to this function so we can Mock it for testing