public class AgentRules extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TERMINATION_TIMEOUT
Constant for the termination timeout.
|
Constructor and Description |
---|
AgentRules() |
Modifier and Type | Method and Description |
---|---|
static Object |
evaluateExpression(jadex.rules.state.IOAVState state,
Object mexp,
IValueFetcher fetcher)
Evaluate an mexpression.
|
static List |
getAllSubcapabilities(jadex.rules.state.IOAVState state,
Object rcapa)
Get all contained capabilities.
|
static Object |
getPropertyValue(jadex.rules.state.IOAVState state,
Object rcapa,
String name)
Get a property value.
|
static IFuture |
initBelief(jadex.rules.state.IOAVState state,
Object rcapa,
Object mbel,
IValueFetcher fetcher)
Initialize a belief.
|
static IFuture |
initBeliefSet(jadex.rules.state.IOAVState state,
Object rcapa,
Object mbelset,
IValueFetcher fetcher)
Initialize a beliefset.
|
static void |
initParameters(jadex.rules.state.IOAVState state,
Object rparamelem,
Object configelem,
IValueFetcher fetcher,
IValueFetcher configfetcher,
Set doneparams,
Map bindings,
Object rcapa)
Init parameters of parameter element.
|
static Object[] |
resolveCapability(String name,
jadex.rules.state.OAVObjectType type,
Object rcapa,
jadex.rules.state.IOAVState state)
Fetch an element and its scope by its complex name (e.g. cmscap.cms_create_component).
|
static Object[] |
resolveCapability(String name,
jadex.rules.state.OAVObjectType type,
Object rcapa,
jadex.rules.state.IOAVState state,
boolean recurse)
Fetch an element and its scope by its complex name (e.g. cmscap.cms_create_component).
|
static Object[] |
resolveMCapability(String name,
jadex.rules.state.OAVObjectType type,
Object mcapa,
jadex.rules.state.IOAVState state)
Fetch an element and its scope by its complex name (e.g. cmscap.cms_create_component).
|
static Object[] |
resolveMCapability(String name,
jadex.rules.state.OAVObjectType type,
Object mcapa,
jadex.rules.state.IOAVState state,
boolean recurse,
String path)
Fetch an element and its scope by its complex name (e.g. cmscap.cms_create_component).
|
static void |
startTerminating(jadex.rules.state.IOAVState state,
Object ragent)
Initiate the termination of an agent.
|
public static final String TERMINATION_TIMEOUT
public static IFuture initBelief(jadex.rules.state.IOAVState state, Object rcapa, Object mbel, IValueFetcher fetcher)
state
- The state.rcapa
- The capability.mbel
- The belief model.fetcher
- The fetcher.public static IFuture initBeliefSet(jadex.rules.state.IOAVState state, Object rcapa, Object mbelset, IValueFetcher fetcher)
state
- The state.rcapa
- The capability.mbelset
- The beliefset model.fetcher
- The fetcher.public static Object evaluateExpression(jadex.rules.state.IOAVState state, Object mexp, IValueFetcher fetcher)
state
- The state.mexp
- The expression object in the state.exparams
- Optional expression parameters.public static void initParameters(jadex.rules.state.IOAVState state, Object rparamelem, Object configelem, IValueFetcher fetcher, IValueFetcher configfetcher, Set doneparams, Map bindings, Object rcapa)
state
- The state.rparamelem
- The runtime parameter element.configelem
- The configuration element.fetcher
- The value fetcher.configfetcher
- The value fetcher for the config element scope (might differ from original scope).preparams
- The already initialized parameters.public static Object[] resolveCapability(String name, jadex.rules.state.OAVObjectType type, Object rcapa, jadex.rules.state.IOAVState state)
name
- The name.type
- The object type (belief, beliefset, goal, internalevent, messageevent).rcapa
- The runtime scope.forward
- resolve only forward (outer to inner).public static Object[] resolveCapability(String name, jadex.rules.state.OAVObjectType type, Object rcapa, jadex.rules.state.IOAVState state, boolean recurse)
name
- The name.type
- The object type (belief, beliefset, goal, internalevent, messageevent).rcapa
- The runtime scope.recurse
- recurse (true) or resolve only one level (false).public static Object[] resolveMCapability(String name, jadex.rules.state.OAVObjectType type, Object mcapa, jadex.rules.state.IOAVState state)
name
- The name.type
- The object type (belief, beliefset, goal, internalevent, messageevent).rcapa
- The runtime scope.forward
- resolve only forward (outer to inner).public static Object[] resolveMCapability(String name, jadex.rules.state.OAVObjectType type, Object mcapa, jadex.rules.state.IOAVState state, boolean recurse, String path)
name
- The name.type
- The object type (belief, beliefset, goal, internalevent, messageevent).rcapa
- The runtime scope.recurse
- recurse (true) or resolve only one level (false).public static List getAllSubcapabilities(jadex.rules.state.IOAVState state, Object rcapa)
state
- The state.rcapa
- The start capability.public static void startTerminating(jadex.rules.state.IOAVState state, Object ragent)
Copyright © 2012. All Rights Reserved.