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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IPlan createPlan​(MPlan mplan)
      Create a plan instance.
      long getCount()
      Get the element count.
      java.lang.String getId()
      Get the id.
      MElement getModelElement()
      Get the model element.
      IPlan[] getPlans()
      Get all running plans of this planbase.
      IPlan[] getPlans​(java.lang.String type)
      Get all plans of a specified type (=model element name).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
      • getCount

        public long getCount()
        Get the element count.
        Specified by:
        getCount in interface IElement
        Returns:
        The element count.
      • getId

        public java.lang.String getId()
        Get the id.
        Specified by:
        getId in interface IElement
        Returns:
        The id.