内容表

上一话题

QScxmlExecutableContent

下一话题

QScxmlInvokableServiceFactory

QScxmlInvokableService

QScxmlInvokableService class is the base class for services called from state machines. 更多 …

Inheritance diagram of PySide2.QtScxml.QScxmlInvokableService

概要

虚函数

详细描述

The services are called from state machines via the mechanism described in SCXML Specification - 6.4 . This class represents an actual instance of an invoked service.

class QScxmlInvokableService ( parentStateMachine , parent )
参数
PySide2.QtScxml.QScxmlInvokableService. id ( )
返回类型

unicode

PySide2.QtScxml.QScxmlInvokableService. name ( )
返回类型

unicode

PySide2.QtScxml.QScxmlInvokableService. parentStateMachine ( )
返回类型

QScxmlStateMachine

PySide2.QtScxml.QScxmlInvokableService. postEvent ( event )
参数

event – QScxmlEvent

Sends an event to the service.

PySide2.QtScxml.QScxmlInvokableService. start ( )
返回类型

bool

Starts the invokable service. Returns true on success, or false if the invocation fails.