GraphMine

graphmine-core / io.github.sof3.graphmine.feature / DoubleFeatureHandler

DoubleFeatureHandler

class DoubleFeatureHandler<Node1 : FeatureNode<Node1, Inst1>, Inst1 : FeatureNodeInstance<Inst1, Node1>, Node2 : FeatureNode<Node2, Inst2>, Inst2 : FeatureNodeInstance<Inst2, Node2>> : FeatureEdge<Node1, Node2, Inst1, Inst2>

Internal

Constructors

<init> DoubleFeatureHandler(node1: Node1, node2: Node2, fn: (Inst1, Inst2, FeatureEvent) -> Unit)

Properties

node1 val node1: Node1
Represents one of the endpoint FeatureNodes. Swapping node1 and node2 does not matter.
node2 val node2: Node2
Represents one of the endpoint FeatureNodes. Swapping node1 and node2 does not matter.

Functions

handle fun handle(inst1: Inst1, inst2: Inst2, event: FeatureEvent): Unit
The implementation to handle the FeatureEvent.