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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.tccc.kos.ext.dispense.pipeline.ingredient.PumpIntent
     
    void
    parseIntent(com.tccc.kos.ext.dispense.pipeline.ingredient.PumpIntent intent, org.jdom2.Element root)
     
    com.tccc.kos.ext.dispense.pipeline.ingredient.ops.PumpOp
    toPumpOp(String type, org.jdom2.Element root)
     

    Methods inherited from class com.tccc.kos.ext.dispense.pipeline.ingredient.XmlPumpIntentFactory

    addLoader, getIntent, load, lookupIntent, setBaseProperties

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XmlFreestylePumpIntentFactory

      public XmlFreestylePumpIntentFactory()
  • Method Details

    • newPumpIntent

      public com.tccc.kos.ext.dispense.pipeline.ingredient.PumpIntent newPumpIntent(String name)
      Overrides:
      newPumpIntent in class com.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 class com.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 class com.tccc.kos.ext.dispense.pipeline.ingredient.XmlPumpIntentFactory