fr.lifl.magique.skill.system
Class KillSkill

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

public class KillSkill
extends DefaultSkill

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.


Constructor Summary
KillSkill(AtomicAgent myAgent)
           
 
Method Summary
 void die()
          agent dies
 void disconnectAndDie()
          agent dies after safe disconnections (disconnectionSkill() is required) and server
 
Methods inherited from class fr.lifl.magique.skill.DefaultSkill
addAgenda, addSkill, addSkill, addSkill, addSkill, 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, concurrentAsk, concurrentAsk, concurrentAsk, concurrentAsk, concurrentAsk, concurrentAsk, concurrentAsk, connectTo, createOrder, createOrder, createOrder, createOrder, createOrder, createOrder, createQuestion, createQuestion, createQuestion, createQuestion, createQuestion, createQuestion, getAgenda, getMyAgent, getName, getPlatform, isAnswerReceived, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, 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(AtomicAgent myAgent)
Method Detail

disconnectAndDie

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


die

public void die()
agent dies