jildt.tilde
Class stopCriteria

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

public class stopCriteria
extends jason.asSemantics.DefaultInternalAction

Internal action for checking if a set of examples fulfills a criteria to stop the tree building. The chosen mechanism is verify that the examples (or a percentage of them) belong to one class. A Literal like percentage(P) must be used to define the percentage of examples needed to satisfy the stop criteria.

Use:
jildt.tilde.stopCriteria(Exs, percentage(P), Class)

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,a)), on(a,c),on(z,table),on(b,table),on(c,table),clear(table)], success)).
  3. jildt_example(put_label, [intend(put(c,b)), on(a,table),on(z,b),on(b,a),on(c,table),clear(table)], fail)).

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

Constructor Summary
stopCriteria()
           
 
Method Summary
 java.lang.Object execute(jason.asSemantics.TransitionSystem ts, jason.asSemantics.Unifier un, jason.asSyntax.Term[] args)
           
 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

stopCriteria

public stopCriteria()
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

getMinArgs

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

getMaxArgs

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