java.lang.Object
com.kosdev.kos.ext.dispense.pipeline.beverage.graph.GraphNode
com.kosdev.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
Version:
1
  • Field Details

  • Constructor Details

    • PumpNode

      public PumpNode(Pump<?> pump)
      Creates a node associated with the given pump and a type of "PUMP".
      Since:
      1
  • 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()