java.lang.Object
com.tccc.kos.ext.dispense.pipeline.beverage.graph.GraphNode
com.tccc.kos.ext.dispense.pipeline.beverage.graph.DeadNode
All Implemented Interfaces:
Comparable<GraphNode>

public class DeadNode extends GraphNode
A GraphNode that always reports unavailable and not visible unless the overrides are set.

This is automatically inserted into graphs when child dependencies are marked as optional and the child node doesn't actually exist. This ensures that the dependency isn't lost, which might otherwise change the logic of the parent node.

Since:
1.0
Version:
2023-02-10
  • Field Details

  • Constructor Details

    • DeadNode

      public DeadNode(String id)
      Creates a node with the specified ID and a type of "DEAD".
      Parameters:
      id - the ID of the node