edu.udo.cs.ie.cowbots.internalActions.scout
Class checkPriority

Package class diagram package checkPriority
java.lang.Object
  extended by DefaultInternalAction
      extended by edu.udo.cs.ie.cowbots.internalActions.scout.checkPriority

public class checkPriority
extends DefaultInternalAction

Class, which was used in the group-formation. The calling Agent compares his knowledge to check whether he is allowed to form a group. No longer used by the newest version


Field Summary
(package private)  BeliefSet bs
           
(package private)  ICowbot cowbot
           
(package private)  java.lang.String myId
           
(package private)  int myPrio
           
(package private)  byte prio
           
 
Constructor Summary
checkPriority()
           
 
Method Summary
private  byte check()
          Utility function for calculating whether the Agent is allowed to form a group or not
 java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cowbot

ICowbot cowbot

bs

BeliefSet bs

prio

byte prio

myId

java.lang.String myId

myPrio

int myPrio
Constructor Detail

checkPriority

public checkPriority()
Method Detail

execute

public java.lang.Object execute(TransitionSystem ts,
                                Unifier un,
                                Term[] args)
                         throws java.lang.Exception
Throws:
java.lang.Exception

check

private byte check()
Utility function for calculating whether the Agent is allowed to form a group or not

Returns:
result-byte, value = 1, if the Agent has the best priority, value = 0 else