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 Details

    • getNodeId

      String getNodeId()
      Return the id of the node the override is for.
    • onAttachNode

      void onAttachNode(GraphNode node)
      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

      Boolean computeVisible(GraphNode node)
      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

      Boolean computeAvailable(GraphNode node)
      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