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

public class PumpNode extends GraphNode
A GraphNode that represents a pump.

The PourEngine automatically adds these nodes to the base of the graph when a graph is rebuilt. Only pumps that have an effective ingredient are added, as pumps without ingredients cannot be used for beverage pouring.

This node has a type of "PUMP", and its ID is the path of the associated pump.

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

  • Constructor Details

    • PumpNode

      public PumpNode(Pump<?> pump)
      Creates a node associated with the given pump and a type of "PUMP".
  • Method Details

    • computeVisible

      public boolean computeVisible()
      Returns true, as pump nodes are always visible.
      Overrides:
      computeVisible in class GraphNode
    • computeAvailable

      public boolean computeAvailable()
      Returns true if the pump can pour the inserted ingredient as part of a beverage pour.
      Overrides:
      computeAvailable in class GraphNode
    • getPump

      public Pump<?> getPump()