Class SBDIModel


  • public class SBDIModel
    extends java.lang.Object
    Helper methods for pojo BDI and BDI V3X models.
    • Constructor Detail

      • SBDIModel

        public SBDIModel()
    • Method Detail

      • mergeSubcapabilities

        public static void mergeSubcapabilities​(IBDIModel bdimodel,
                                                java.util.Map<java.lang.String,​IBDIModel> capas,
                                                java.lang.ClassLoader cl)
        Add elements from sub capabilities into model.
        Parameters:
        bdimodel - The model.
        capas - The sub capabilities.
      • copyParameter

        protected static MParameter copyParameter​(IBDIModel bdimodel,
                                                  java.lang.ClassLoader cl,
                                                  java.lang.String capaname,
                                                  MParameter param)
        Copy a parameter and adapt events.
      • replaceReferences

        public static void replaceReferences​(IBDIModel bdimodel)
        Add elements from sub capabilities into model.
        Parameters:
        bdimodel - The model.
        capas - The sub capabilities.
      • findBeliefDefaultValue

        public static UnparsedExpression findBeliefDefaultValue​(BDIXModel model,
                                                                MBelief mbel,
                                                                java.lang.String configname)
        Find the belief/ref value. Returns the expression of the default value.
      • findBeliefSetDefaultValues

        public static java.util.List<UnparsedExpression> findBeliefSetDefaultValues​(BDIXModel model,
                                                                                    MBelief mbel,
                                                                                    java.lang.String configname)
        Find the beliefset/ref value. Returns the expressions of the default values.
      • convertTrigger

        protected static MTrigger convertTrigger​(IBDIModel bdimodel,
                                                 java.lang.String capa,
                                                 MTrigger trigger,
                                                 boolean copy)
        Convert a plan trigger or waitqueue and map the events. Create a copy if desired.
      • convertEvents

        protected static java.util.Set<java.lang.String> convertEvents​(java.lang.String capa,
                                                                       java.util.Set<java.lang.String> evs,
                                                                       IBDIModel bdimodel)
      • convertEventTypes

        protected static java.util.List<jadex.rules.eca.EventType> convertEventTypes​(java.lang.String capa,
                                                                                     java.util.Collection<jadex.rules.eca.EventType> evs,
                                                                                     IBDIModel bdimodel)
      • copyCondition

        protected static MCondition copyCondition​(IBDIModel bdimodel,
                                                  java.lang.String capa,
                                                  MCondition cond)
        Copy a condition and adapt the events.
      • copyExpressions

        protected static java.util.List<UnparsedExpression> copyExpressions​(java.lang.String scope,
                                                                            java.util.List<UnparsedExpression> upes)
        Copy expressions. Adds correct scope.