Interface NodeOverride
- All Known Implementing Classes:
SimpleNodeOverride
public interface NodeOverride
Interface for attaching external override logic to a
GraphNode
.
If multiple overrides are attached to a node a forced not available or forced not visible overrides a forced available or visible. Overrides should return null if they do not have an explicit available or visible state which delegates to other overrides and the default logic.
- Since:
- 1.0
- Version:
- 2023-12-06
-
Method Summary
Modifier and TypeMethodDescriptioncomputeAvailable
(GraphNode node) Called when the associated node availability is recomputed.computeVisible
(GraphNode node) Called when the associated node visibility is recomputed.Return the id of the node the override is for.void
onAttachNode
(GraphNode node) Called when the override is attached to a node.
-
Method Details
-
getNodeId
String getNodeId()Return the id of the node the override is for. -
onAttachNode
Called when the override is attached to a node. This will be called every time the graph is rebuilt and overrides are re-applied. If there is no matching node this will be called with null. -
computeVisible
Called when the associated node visibility is recomputed. Return true to force the node visible or false to force the node not visible. Return null to use standard visibility logic. -
computeAvailable
Called when the associated node availability is recomputed. Return true to force the node available or false to force the node not available. Return null to use standard availability logic
-