public class NodeFeatureRegistry extends Object
Modifier and Type | Method and Description |
---|---|
static NodeFeature |
create(Class<? extends NodeFeature> nodeFeatureType,
StateNode node)
Creates a feature of the given type for a node.
|
static Class<? extends NodeFeature> |
getFeature(int featureId)
Finds the node feature type corresponding to the give node feature id.
|
static Collection<Class<? extends NodeFeature>> |
getFeatures()
Gets all registered feature types.
|
static int |
getId(Class<? extends NodeFeature> nodeFeature)
Gets the id of a node feature.
|
public static NodeFeature create(Class<? extends NodeFeature> nodeFeatureType, StateNode node)
nodeFeatureType
- the type of the feature to createnode
- the node for which the feature should be createdpublic static int getId(Class<? extends NodeFeature> nodeFeature)
nodeFeature
- the node featurepublic static Collection<Class<? extends NodeFeature>> getFeatures()
null
public static Class<? extends NodeFeature> getFeature(int featureId)
featureId
- the feature id for which to get a node feature typeCopyright © 2023. All rights reserved.