Class SBDIModel

java.lang.Object
jadex.bdi.model.SBDIModel

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

    • SBDIModel

      public SBDIModel()
  • Method Details

    • mergeSubcapabilities

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

      protected static void copyConfiguration(IBDIModel bdimodel, String capaname, jadex.model.modelinfo.ConfigurationInfo cinner, jadex.model.modelinfo.ConfigurationInfo couter, MConfiguration inner, MConfiguration outer)
      Copy an inner configuration into an outer one.
    • copyConfigBelief

      protected static MConfigBeliefElement copyConfigBelief(IBDIModel bdimodel, String capaname, MConfigBeliefElement cbel, List<MConfigBeliefElement> test)
      Copy a config belief element.
    • copyConfigParameterElement

      protected static MConfigParameterElement copyConfigParameterElement(IBDIModel bdimodel, String capaname, MConfigParameterElement cpel, List<MConfigParameterElement> test)
      Copy a config parameter element.
    • copyParameter

      protected static MParameter copyParameter(IBDIModel bdimodel, ClassLoader cl, 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.
    • convertTrigger

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

      protected static Set<String> convertEvents(String capa, Set<String> evs, IBDIModel bdimodel)
    • convertEventTypes

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

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

      protected static jadex.common.UnparsedExpression copyExpression(String scope, jadex.common.UnparsedExpression upex)
      Copy an expression. Adds correct scope.
    • copyExpressions

      protected static List<jadex.common.UnparsedExpression> copyExpressions(String scope, List<jadex.common.UnparsedExpression> upes)
      Copy expressions. Adds correct scope.