Class PlanbaseWrapper

  • All Implemented Interfaces:
    IElement, IPlanbase

    public class PlanbaseWrapper
    extends java.lang.Object
    implements IPlanbase
    Prepend capability prefix to plan names.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IPlanbase planbase
      The flat plan base.
      protected java.lang.String prefix
      The full capability prefix.
    • Constructor Summary

      Constructors 
      Constructor Description
      PlanbaseWrapper​(IPlanbase planbase, java.lang.String prefix)
      Create a plan base wrapper.
    • Field Detail

      • planbase

        protected IPlanbase planbase
        The flat plan base.
      • prefix

        protected java.lang.String prefix
        The full capability prefix.
    • Constructor Detail

      • PlanbaseWrapper

        public PlanbaseWrapper​(IPlanbase planbase,
                               java.lang.String prefix)
        Create a plan base wrapper.
    • Method Detail

      • getModelElement

        public MElement getModelElement()
        Get the model element.
        Specified by:
        getModelElement in interface IElement
        Returns:
        The model element.
      • getPlans

        public IPlan[] getPlans()
        Get all running plans of this planbase.
        Specified by:
        getPlans in interface IPlanbase
        Returns:
        The plans.
      • getPlans

        public IPlan[] getPlans​(java.lang.String type)
        Get all plans of a specified type (=model element name).
        Specified by:
        getPlans in interface IPlanbase
        Parameters:
        type - The plan type.
        Returns:
        All plans of the specified type.