EdgeOutputPair

inner class EdgeOutputPair<I, O>(val node: NodeReference<I, O>, val output: O)(source)

Represents a pair consisting of a node and its corresponding output within an edge assertion context. This is used to define expected edge behavior in a graph of nodes.

Parameters

I

the type of the input expected by the node.

O

the type of the output produced by the node.

Constructors

Link copied to clipboard
constructor(node: NodeReference<I, O>, output: O)

Properties

Link copied to clipboard

the reference to the node associated with this edge output.

Link copied to clipboard
val output: O

the output value associated with the node.

Functions

Link copied to clipboard
infix fun goesTo(targetNode: NodeReference<*, *>)

Creates an assertion to verify that a specific output from the current node leads to the given target node.