public class SBDIModel
extends java.lang.Object
Constructor and Description |
---|
SBDIModel() |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Set<java.lang.String> |
convertEvents(java.lang.String capa,
java.util.Set<java.lang.String> evs,
IBDIModel bdimodel) |
protected static java.util.List<EventType> |
convertEventTypes(java.lang.String capa,
java.util.Collection<EventType> evs,
IBDIModel bdimodel) |
protected static MTrigger |
convertTrigger(IBDIModel bdimodel,
java.lang.String capa,
MTrigger trigger,
boolean copy)
Convert a plan trigger or waitqueue and map the events.
|
protected static MCondition |
copyCondition(IBDIModel bdimodel,
java.lang.String capa,
MCondition cond)
Copy a condition and adapt the events.
|
protected static MConfigBeliefElement |
copyConfigBelief(IBDIModel bdimodel,
java.lang.String capaname,
MConfigBeliefElement cbel,
java.util.List<MConfigBeliefElement> test)
Copy a config belief element.
|
protected static MConfigParameterElement |
copyConfigParameterElement(IBDIModel bdimodel,
java.lang.String capaname,
MConfigParameterElement cpel,
java.util.List<MConfigParameterElement> test)
Copy a config parameter element.
|
protected static void |
copyConfiguration(IBDIModel bdimodel,
java.lang.String capaname,
ConfigurationInfo cinner,
ConfigurationInfo couter,
MConfiguration inner,
MConfiguration outer)
Copy an inner configuration into an outer one.
|
protected static UnparsedExpression |
copyExpression(java.lang.String scope,
UnparsedExpression upex)
Copy an expression.
|
protected static java.util.List<UnparsedExpression> |
copyExpressions(java.lang.String scope,
java.util.List<UnparsedExpression> upes)
Copy expressions.
|
protected static MParameter |
copyParameter(IBDIModel bdimodel,
java.lang.ClassLoader cl,
java.lang.String capaname,
MParameter param)
Copy a parameter and adapt events.
|
static UnparsedExpression |
findBeliefDefaultValue(BDIXModel model,
MBelief mbel,
java.lang.String configname)
Find the belief/ref value.
|
static java.util.List<UnparsedExpression> |
findBeliefSetDefaultValues(BDIXModel model,
MBelief mbel,
java.lang.String configname)
Find the beliefset/ref value.
|
static void |
mergeSubcapabilities(IBDIModel bdimodel,
java.util.Map<java.lang.String,IBDIModel> capas,
java.lang.ClassLoader cl)
Add elements from sub capabilities into model.
|
static void |
replaceReferences(IBDIModel bdimodel)
Add elements from sub capabilities into model.
|
public static void mergeSubcapabilities(IBDIModel bdimodel, java.util.Map<java.lang.String,IBDIModel> capas, java.lang.ClassLoader cl)
bdimodel
- The model.capas
- The sub capabilities.protected static void copyConfiguration(IBDIModel bdimodel, java.lang.String capaname, ConfigurationInfo cinner, ConfigurationInfo couter, MConfiguration inner, MConfiguration outer)
protected static MConfigBeliefElement copyConfigBelief(IBDIModel bdimodel, java.lang.String capaname, MConfigBeliefElement cbel, java.util.List<MConfigBeliefElement> test)
protected static MConfigParameterElement copyConfigParameterElement(IBDIModel bdimodel, java.lang.String capaname, MConfigParameterElement cpel, java.util.List<MConfigParameterElement> test)
protected static MParameter copyParameter(IBDIModel bdimodel, java.lang.ClassLoader cl, java.lang.String capaname, MParameter param)
public static void replaceReferences(IBDIModel bdimodel)
bdimodel
- The model.capas
- The sub capabilities.public static UnparsedExpression findBeliefDefaultValue(BDIXModel model, MBelief mbel, java.lang.String configname)
public static java.util.List<UnparsedExpression> findBeliefSetDefaultValues(BDIXModel model, MBelief mbel, java.lang.String configname)
protected static MTrigger convertTrigger(IBDIModel bdimodel, java.lang.String capa, MTrigger trigger, boolean copy)
protected static java.util.Set<java.lang.String> convertEvents(java.lang.String capa, java.util.Set<java.lang.String> evs, IBDIModel bdimodel)
protected static java.util.List<EventType> convertEventTypes(java.lang.String capa, java.util.Collection<EventType> evs, IBDIModel bdimodel)
protected static MCondition copyCondition(IBDIModel bdimodel, java.lang.String capa, MCondition cond)
protected static UnparsedExpression copyExpression(java.lang.String scope, UnparsedExpression upex)
protected static java.util.List<UnparsedExpression> copyExpressions(java.lang.String scope, java.util.List<UnparsedExpression> upes)