jildt.tilde
Class bestCandidate

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

public class bestCandidate
extends jason.asSemantics.DefaultInternalAction

Internal action for selecting the best candidate to form a node in a logical decision tree. When more than one candidate maximizes its metric, the best candidate is selected randomly. The seed for this selection can been configured with the literal jildt_settings(randomSeed, Value).

Use:
jildt.tilde.bestCandidate(Cnds, BestCn)

Parameters:

Examples: Assuming that Cnds is equal to the list: [[NaN,clear(X)],[1,clear(Y)],[NaN,on(A,X)],[0.5,on(A,Y)]]

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

Constructor Summary
bestCandidate()
           
 
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

bestCandidate

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