de.fau.cs.www8.jadeowlcodec.examples.transformationJADEontology2OWLexample
Class EngagerAgent

java.lang.Object
  extended by jade.core.Agent
      extended by de.fau.cs.www8.jadeowlcodec.examples.transformationJADEontology2OWLexample.EngagerAgent
All Implemented Interfaces:
jade.core.TimerListener, java.io.Serializable, java.lang.Runnable

public class EngagerAgent
extends jade.core.Agent

This agent is able to engage people on behalf of company CSELT Via Reiss Romoli 274 - Turin

Version:
$Date: 2007-03-17 18:48:48 +0100 (Sat, 17 Mar 2007) $ $Revision: 2092 $ see examples.ontology.RequesterAgent
Author:
Giovanni Caire - CSELT S.p.A & Bernhard Schiemann University Erlangen-Nuremberg Inf8 KI new Version: Showing the Erlanger JadeOWLCodec in Action by, Bernhard Schieman
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jade.core.Agent
jade.core.Agent.Interrupted
 
Field Summary
protected  jade.lang.acl.MessageTemplate template
           
 
Fields inherited from class jade.core.Agent
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN
 
Constructor Summary
EngagerAgent()
           
 
Method Summary
 void addIFsameAsAdress(Adress a1, Adress a2)
          This method identifies two (domain dependend) equal addresses and adds the tags.
 void addIFsameAsCompany(Company c1, Company c2)
          This method identifies two (domain dependend) equal companies and adds the tags.
 void addIFsameAsPerson(Person p1, Person p2)
          This method identifies two (domain dependend) equal persons and adds the tags.
 int doEngage(Person p, Company co)
           
 int doEngage(Person p, Company co, AssertionSet sourceAbox)
           
 KnowledgeBase getKb()
          This get method is needed by the behaviour classes to access the agent kb.
 Company getMyComp()
           
static boolean isAdressEqual(Adress a1, Adress a2)
          This method computes if/compares two given addresses are "equal".
static boolean isCompanyEqual(Company c1, Company c2)
          This method computes if/compares two given companies are "equal".
static boolean isPersonEqual(Person p1, Person p2)
          This method computes if/compares two given persons are "equal".
 boolean isWorking(Person p, Company co)
           
 boolean isWorking(Person p, Company co)
           
protected  void setup()
           
 
Methods inherited from class jade.core.Agent
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAMS, getArguments, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AObject, getProperty, getQueueSize, getState, here, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, removeBehaviour, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setQueueSize, takeDown, waitUntilStarted, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

template

protected jade.lang.acl.MessageTemplate template
Constructor Detail

EngagerAgent

public EngagerAgent()
Method Detail

setup

protected void setup()
Overrides:
setup in class jade.core.Agent

isAdressEqual

public static boolean isAdressEqual(Adress a1,
                                    Adress a2)
This method computes if/compares two given addresses are "equal". This is agent specific code, because each agent is chief of his own namespace/ABox

Parameters:
a1 - de.fau.cs.www8.jadeowlcodec.examples.employment_generated.f.Adress
a2 - de.fau.cs.www8.jadeowlcodec.examples.employment_generated.f.Adress

isCompanyEqual

public static boolean isCompanyEqual(Company c1,
                                     Company c2)
This method computes if/compares two given companies are "equal". This is agent specific code, because each agent is chief of his own namespace/ABox

Parameters:
c1 - de.fau.cs.www8.jadeowlcodec.examples.employment_generated.f.Company
c2 - de.fau.cs.www8.jadeowlcodec.examples.employment_generated.f.Company

isPersonEqual

public static boolean isPersonEqual(Person p1,
                                    Person p2)
This method computes if/compares two given persons are "equal". This is agent specific code, because each agent is chief of his own namespace/ABox

Parameters:
p1 -
p2 -

addIFsameAsCompany

public void addIFsameAsCompany(Company c1,
                               Company c2)
This method identifies two (domain dependend) equal companies and adds the tags.

Parameters:
c1 -
c2 -

addIFsameAsPerson

public void addIFsameAsPerson(Person p1,
                              Person p2)
This method identifies two (domain dependend) equal persons and adds the tags.

Parameters:
p1 -
p2 -

addIFsameAsAdress

public void addIFsameAsAdress(Adress a1,
                              Adress a2)
This method identifies two (domain dependend) equal addresses and adds the tags.

Parameters:
a1 -
a2 -

isWorking

public boolean isWorking(Person p,
                         Company co)

doEngage

public int doEngage(Person p,
                    Company co,
                    AssertionSet sourceAbox)

isWorking

public boolean isWorking(Person p,
                         Company co)

doEngage

public int doEngage(Person p,
                    Company co)

getKb

public KnowledgeBase getKb()
This get method is needed by the behaviour classes to access the agent kb.

Returns:
EngagerAgent's OWL DL KnowledgeBase object

getMyComp

public Company getMyComp()


Copyright 2007 Moritz Goeb, Bernhard Schiemann, Ulf Schreiber of Chair of Artificial Intelligence, University of Erlangen-Nuremberg