Class XmlFreestylePumpIntentFactory
java.lang.Object
com.tccc.kos.ext.dispense.pipeline.ingredient.XmlPumpIntentFactory
com.tccc.kos.ext.freestyle.pipeline.ingredient.XmlFreestylePumpIntentFactory
- All Implemented Interfaces:
com.tccc.kos.ext.dispense.pipeline.ingredient.PumpIntentFactory
public class XmlFreestylePumpIntentFactory
extends com.tccc.kos.ext.dispense.pipeline.ingredient.XmlPumpIntentFactory
Implementation of
PumpIntentFactory
that leverages xml data files
to describe operations, intents and rules to map intent types for specific
pumps to named intents. This supports those PumpOp
types that are
part of kOS, but this class can be extended to add support for additional
operations while still leveraging all the xml infrastructure.- Since:
- 1.0
- Version:
- 2023-01-22
-
Field Summary
Fields inherited from class com.tccc.kos.ext.dispense.pipeline.ingredient.XmlPumpIntentFactory
RULE_TYPE_PUMP_CATEGORY, RULE_TYPE_PUMP_PATH, RULE_TYPE_PUMP_TYPE, XML_DILUTED, XML_DURATION, XML_GRANTS, XML_INHERIT_GRANTS, XML_RATE, XML_TYPE, XML_VOLUME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.tccc.kos.ext.dispense.pipeline.ingredient.PumpIntent
newPumpIntent
(String name) void
parseIntent
(com.tccc.kos.ext.dispense.pipeline.ingredient.PumpIntent intent, org.jdom2.Element root) com.tccc.kos.ext.dispense.pipeline.ingredient.ops.PumpOp
Methods inherited from class com.tccc.kos.ext.dispense.pipeline.ingredient.XmlPumpIntentFactory
addLoader, getIntent, load, lookupIntent, setBaseProperties
-
Constructor Details
-
XmlFreestylePumpIntentFactory
public XmlFreestylePumpIntentFactory()
-
-
Method Details
-
newPumpIntent
- Overrides:
newPumpIntent
in classcom.tccc.kos.ext.dispense.pipeline.ingredient.XmlPumpIntentFactory
-
parseIntent
public void parseIntent(com.tccc.kos.ext.dispense.pipeline.ingredient.PumpIntent intent, org.jdom2.Element root) - Overrides:
parseIntent
in classcom.tccc.kos.ext.dispense.pipeline.ingredient.XmlPumpIntentFactory
-
toPumpOp
public com.tccc.kos.ext.dispense.pipeline.ingredient.ops.PumpOp toPumpOp(String type, org.jdom2.Element root) - Overrides:
toPumpOp
in classcom.tccc.kos.ext.dispense.pipeline.ingredient.XmlPumpIntentFactory
-