Class PumpNode
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>
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.tccc.kos.ext.dispense.pipeline.beverage.graph.GraphNode
addOverride, compareTo, equals, getAltId, getChildren, getChildrenIds, getClientData, getData, getId, getNote, getOverrides, getParentIds, getType, getVersion, hashCode, isAvailable, isVisible, removeOverride, removeOverride, setAltId, setClientData, setData, setNote, setType, toString
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
PumpNode
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 classGraphNode
-
computeAvailable
public boolean computeAvailable()Returns true if the pump can pour the inserted ingredient as part of a beverage pour.- Overrides:
computeAvailable
in classGraphNode
-
getPump
-