Package jadex.bdi.model
Class SBDIModel
java.lang.Object
jadex.bdi.model.SBDIModel
Helper methods for pojo BDI and BDI V3X models.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertEvents
(String capa, Set<String> evs, IBDIModel bdimodel) protected static List
<jadex.rules.eca.EventType> convertEventTypes
(String capa, Collection<jadex.rules.eca.EventType> evs, IBDIModel bdimodel) protected static MTrigger
convertTrigger
(IBDIModel bdimodel, String capa, MTrigger trigger, boolean copy) Convert a plan trigger or waitqueue and map the events.protected static MCondition
copyCondition
(IBDIModel bdimodel, String capa, MCondition cond) Copy a condition and adapt the events.protected static MConfigBeliefElement
copyConfigBelief
(IBDIModel bdimodel, String capaname, MConfigBeliefElement cbel, List<MConfigBeliefElement> test) Copy a config belief element.protected static MConfigParameterElement
copyConfigParameterElement
(IBDIModel bdimodel, String capaname, MConfigParameterElement cpel, List<MConfigParameterElement> test) Copy a config parameter element.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.protected static jadex.common.UnparsedExpression
copyExpression
(String scope, jadex.common.UnparsedExpression upex) Copy an expression.protected static List
<jadex.common.UnparsedExpression> copyExpressions
(String scope, List<jadex.common.UnparsedExpression> upes) Copy expressions.protected static MParameter
copyParameter
(IBDIModel bdimodel, ClassLoader cl, String capaname, MParameter param) Copy a parameter and adapt events.static void
mergeSubcapabilities
(IBDIModel bdimodel, Map<String, IBDIModel> capas, ClassLoader cl) Add elements from sub capabilities into model.static void
replaceReferences
(IBDIModel bdimodel) Add elements from sub capabilities into model.
-
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
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
-
convertEventTypes
protected static List<jadex.rules.eca.EventType> convertEventTypes(String capa, Collection<jadex.rules.eca.EventType> evs, IBDIModel bdimodel) -
copyCondition
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.
-