graphmine-core / io.github.sof3.graphmine.feature / 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
| <init> | DoubleFeatureHandler(node1: Node1, node2: Node2, fn: (Inst1, Inst2, FeatureEvent) -> Unit) |
| node1 | val node1: Node1Represents one of the endpoint FeatureNodes. Swapping node1 and node2 does not matter. |
| node2 | val node2: Node2Represents one of the endpoint FeatureNodes. Swapping node1 and node2 does not matter. |
| handle | fun handle(inst1: Inst1, inst2: Inst2, event: FeatureEvent): UnitThe implementation to handle the FeatureEvent. |