GraphMine

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

SingleFeatureHandler

class SingleFeatureHandler<Node : FeatureNode<Node, Inst>, Inst : FeatureNodeInstance<Inst, Node>> : SingleFeatureEdge<Node, Inst>

Internal

Constructors

<init> SingleFeatureHandler(node: Node, fn: (inst: Inst, event: FeatureEvent) -> Unit)

Properties

node val node: Node
the node that the edge incidents with

Inherited Properties

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

Functions

handle fun handle(inst: Inst, event: FeatureEvent): Unit
The implementation to handle the FeatureEvent.

Inherited Functions

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