graphmine-core / io.github.sof3.graphmine.feature / SingleFeatureHandler
class SingleFeatureHandler<Node : FeatureNode<Node, Inst>, Inst : FeatureNodeInstance<Inst, Node>> : SingleFeatureEdge<Node, Inst>
Internal
| <init> | SingleFeatureHandler(node: Node, fn: (inst: Inst, event: FeatureEvent) -> Unit) |
| node | val node: Nodethe node that the edge incidents with |
| node1 | open val node1: NodeRepresents one of the endpoint FeatureNodes. Swapping node1 and node2 does not matter. |
| node2 | open val node2: NodeRepresents one of the endpoint FeatureNodes. Swapping node1 and node2 does not matter. |
| handle | fun handle(inst: Inst, event: FeatureEvent): UnitThe implementation to handle the FeatureEvent. |
| handle | open fun handle(inst1: Inst, inst2: Inst, event: FeatureEvent): UnitThe implementation to handle the FeatureEvent. |