jildt.tilde
Class languageBias

java.lang.Object
  extended by jason.asSemantics.DefaultInternalAction
      extended by jildt.tilde.languageBias
All Implemented Interfaces:
jason.asSemantics.InternalAction, java.io.Serializable

public class languageBias
extends jason.asSemantics.DefaultInternalAction

Internal action to generate the learning language bias after the examples in Exs. The language bias is the definition of which literals are going to be considered as candidates to be included in the Logical Decision Tree. A jildt_rm directive indicates that its argument should be considered as a candidate to refine a query tree. It is important to emphasize that this internal action only returns the language bias, but it does not add automatically the beliefs to knowledge base of the agent.

Use:
jildt.tilde.languageBias(Exs, Lb).

Parameters:

Examples: Given the training examples below.

  1. jildt_example(put_label, [intend(put(b,c)), on(a,table),on(z,c),on(b,a),on(c,table),clear(table)], fail)).
  2. jildt_example(put_label, [intend(put(b,c)), on(a,c),on(z,table),on(b,table),on(c,table),clear(table)], success)).

Author:
Carlos Alberto González-Alarcón, Alejandro Guerra-Hernández, Francisco Grimaldo-Moreno

See Also:
rho, Serialized Form

Constructor Summary
languageBias()
           
 
Method Summary
 java.lang.Object execute(jason.asSemantics.TransitionSystem ts, jason.asSemantics.Unifier un, jason.asSyntax.Term[] args)
           
static jason.asSyntax.ListTerm getCombinations(jason.asSyntax.Literal belief)
          Gets the possible combinations of rmode literals for a given literal.
 int getMaxArgs()
           
 int getMinArgs()
           
 
Methods inherited from class jason.asSemantics.DefaultInternalAction
canBeUsedInContext, prepareArguments, suspendIntention
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

languageBias

public languageBias()
Method Detail

execute

public java.lang.Object execute(jason.asSemantics.TransitionSystem ts,
                                jason.asSemantics.Unifier un,
                                jason.asSyntax.Term[] args)
                         throws java.lang.Exception
Specified by:
execute in interface jason.asSemantics.InternalAction
Overrides:
execute in class jason.asSemantics.DefaultInternalAction
Throws:
java.lang.Exception

getCombinations

public static jason.asSyntax.ListTerm getCombinations(jason.asSyntax.Literal belief)
                                               throws jason.asSyntax.parser.ParseException
Gets the possible combinations of rmode literals for a given literal.

Parameters:
belief - A literal where the combinations will be generated from.
Returns:
A list term compound by the possible combinations of rmode literals for a given literal.
Throws:
jason.asSyntax.parser.ParseException

getMinArgs

public int getMinArgs()
Overrides:
getMinArgs in class jason.asSemantics.DefaultInternalAction

getMaxArgs

public int getMaxArgs()
Overrides:
getMaxArgs in class jason.asSemantics.DefaultInternalAction