Class XmlFreestylePumpIntentFactory
java.lang.Object
com.tccc.kos.ext.dispense.pipeline.ingredient.XmlPumpIntentFactory
com.tccc.kos.ext.freestyle.pipeline.ingredient.XmlFreestylePumpIntentFactory
- All Implemented Interfaces:
PumpIntentFactory
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 TypeMethodDescriptionnewPumpIntent
(String name) void
parseIntent
(PumpIntent intent, org.jdom2.Element root) 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 classXmlPumpIntentFactory
-
parseIntent
- Overrides:
parseIntent
in classXmlPumpIntentFactory
-
toPumpOp
- Overrides:
toPumpOp
in classXmlPumpIntentFactory
-