fr.lifl.magique.skill.magique
Class KillSkill

java.lang.Object
  extended byfr.lifl.magique.skill.MagiqueDefaultSkill
      extended byfr.lifl.magique.skill.magique.KillSkill
All Implemented Interfaces:
Skill

public class KillSkill
extends MagiqueDefaultSkill

If an agent must be stopped, this skill provides the abilities to do this safely. A ful hierarchy can be killed if its boss invokes killHierarchy.


Field Summary
 
Fields inherited from class fr.lifl.magique.skill.MagiqueDefaultSkill
myAgent
 
Constructor Summary
KillSkill(Agent myAgent)
           
 
Method Summary
 void die()
          agent dies
 void disconnectAndDie()
          agent dies after safe disconnections (disconnectionSkill() is required) and server
 void killHierarchy()
          kill all the agents in the hierarchy below "myAgent"
 
Methods inherited from class fr.lifl.magique.skill.MagiqueDefaultSkill
addAgenda, addSkill, addSkill, addSkill, addSkill, addToMyTeam, ask, ask, ask, ask, ask, ask, ask, ask, ask, ask, ask, ask, ask, ask, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, broadcastToAll, broadcastToBasis, concurrentAsk, concurrentAsk, concurrentAsk, concurrentAsk, concurrentAsk, concurrentAsk, concurrentAsk, connectTo, connectToBoss, createOrder, createOrder, createOrder, createOrder, createOrder, createOrder, createQuestion, createQuestion, createQuestion, createQuestion, createQuestion, createQuestion, getAgenda, getMyAgent, getMyBoss, getMyTeam, getName, getPlatform, isAnswerReceived, isBigBoss, isBoss, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, removeFromMyTeam, removeSkill, removeSkillFromClassName, returnAnswer, returnValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KillSkill

public KillSkill(Agent myAgent)
Method Detail

disconnectAndDie

public void disconnectAndDie()
agent dies after safe disconnections (disconnectionSkill() is required) and server


die

public void die()
agent dies


killHierarchy

public void killHierarchy()
kill all the agents in the hierarchy below "myAgent"