本文整理汇总了Python中Acspy.Clients.SimpleClient.PySimpleClient._ContainerServices__importComponentStubs方法的典型用法代码示例。如果您正苦于以下问题:Python PySimpleClient._ContainerServices__importComponentStubs方法的具体用法?Python PySimpleClient._ContainerServices__importComponentStubs怎么用?Python PySimpleClient._ContainerServices__importComponentStubs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Acspy.Clients.SimpleClient.PySimpleClient
的用法示例。
在下文中一共展示了PySimpleClient._ContainerServices__importComponentStubs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: subsystemsOffline
# 需要导入模块: from Acspy.Clients.SimpleClient import PySimpleClient [as 别名]
# 或者: from Acspy.Clients.SimpleClient.PySimpleClient import _ContainerServices__importComponentStubs [as 别名]
def subsystemsOffline(self, subsystem):
from Acspy.Clients.SimpleClient import PySimpleClient
client = PySimpleClient()
mcI = client._ContainerServices__importComponentStubs(comp_type="IDL:alma/ACS/MasterComponent:1.0")
subsystem = client.getComponent(subsystem)
subsystem.doTransition(mcI.SUBSYSEVENT_SHUTDOWNPASS1)
(state, flag) = self.__waitForSubsystemState(subsystem._get_currentStateHierarchy(), "AVAILABLE.OFFLINE.PRESHUTDOWN", 300)
if flag is False:
return (state, flag)
subsystem.doTransition(mcI.SUBSYSEVENT_SHUTDOWNPASS2)
(state, flag) = self.__waitForSubsystemState(subsystem._get_currentStateHierarchy(), "AVAILABLE.OFFLINE.SHUTDOWN", 300)
if flag is False:
return (state, flag)
return (state, flag)