Edge

data class Edge @JvmOverloads constructor(val from: Node, val to: Node, val routes: List<Route> = emptyList())

A connection between two nodes.

An edge carries the set of routes that select it. Omit the routes for an unconditional edge, pass a single Route for the usual conditional edge, or a List for an edge that fires on any of several routes.

构造函数(Constructors)

Link copied to clipboard
constructor(from: Node, to: Node, routes: List<Route> = emptyList())
constructor(from: Node, to: Node, route: Route?)

构建由单个元素选定的边缘(或边界)。 路由(route)……;或者,在某些情况下使用无条件(即不依赖于任何前提条件的)规则。 路由(route) 是 null.

属性(Properties)

Link copied to clipboard
val from: Node

触发该边的节点(即该节点完成其任务后,会使得这条边被激活)。

Link copied to clipboard

无论数据源通过何种路由发送,这条边(即处理数据流的路径)是否都会被触发(即是否都会被执行相应的处理操作)。

Link copied to clipboard

选择这条边的路由(routes)。如果列表为空,那么这条边就成为“无条件”的(unconditional),也就是说它会随时被执行(即无论什么情况下都会被触发)。 from 完成(相关任务或操作)。

Link copied to clipboard
val to: Node

这条边所触发的节点。