Package h
Class expand_template
java.lang.Object
jason.asSemantics.DefaultInternalAction
h.expand_template
- All Implemented Interfaces:
jason.asSemantics.InternalAction,Serializable
public class expand_template
extends jason.asSemantics.DefaultInternalAction
expand_template(Tpl, {Var1 -> Val1, Var2 -> Val2, ...}, URI) is true if URI is the
result of expanding Tpl, a URI template,
with the mapping provided in the second argument. This mapping should be a list of key-value pairs, each key and
value being interpreted as a string. For instance, after executing the following action:
expand_template("http://example.org/{id}{?ts,user}", {id -> res123, user -> alice}, URI)
URI unifies with "http://example.org/res123?user=alice" (and the missing variable mapping
for ts is ignored).- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jason.asSemantics.DefaultInternalAction
canBeUsedInContext, checkArguments, destroy, getMaxArgs, getMinArgs, prepareArguments, suspendIntention
-
Constructor Details
-
expand_template
public expand_template()
-
-
Method Details