graphmine-core / io.github.sof3.graphmine.feature / FeatureNodeInstance
interface FeatureNodeInstance<Self :
FeatureNodeInstance
<
Self
,
Node
>, Node :
FeatureNode
<
Node
,
Self
>>
Represents an instance of FeatureNode. The FeatureNode represents the type in general, while FeatureNodeInstance represents each instance of the type. It is valid for FeatureNodeInstance to be singleton or even same as the FeatureNode. For example, each instance of the Client class represents one client, while the singleton Client.Node companion object represents the client type.
node | abstract val node: Node the corresponding node for the instance. |
BlockInstance | data class BlockInstance : FeatureNodeInstance < BlockInstance , Block > Represents a block type at a certain location. The existence persistence of this block is irrelevant to whether the block is really at the location, ever at the location or has been removed. This is a pure value class. |
Client | interface Client : FeatureNodeInstance < Client , Client.Node > |