Package jade.content.onto.basic

Examples of jade.content.onto.basic.Action


   
    // Build a AMS action object for the request
    Register r = new Register();
    r.setDescription(amsd);
   
    Action act = new Action();
   
    act.setActor(AMSName);
    act.setAction(r);
   
    synchronized (cm) {
      try{   
        cm.fillContent(request, act);
      }
View Full Code Here


      amsd.setState(AMSAgentDescription.ACTIVE);
    // Build a AMS action object for the request
    Deregister d = new Deregister();
    d.setDescription(amsd);
   
    Action act = new Action();
    act.setActor(AMSName);
    act.setAction(d);
   
    synchronized (cm) {
      try{   
        cm.fillContent(request, act);
      }
View Full Code Here

    checkIsValid(amsd);
    // Build a AMS action object for the request
    Modify m = new Modify();
    m.setDescription(amsd);
   
    Action act = new Action();
    act.setActor(AMSName);
    act.setAction(m);
   
    synchronized (cm) {
      try{   
        cm.fillContent(request, act);
      }
View Full Code Here

    // Build a AMS action object for the request
    Search s = new Search();
    s.setDescription(amsd);
    s.setConstraints(constraints);
   
    Action act = new Action();
    act.setActor(AMSName);
    act.setAction(s);
   
    synchronized (cm) {
      try{   
        cm.fillContent(request, act);
      }
View Full Code Here

            logger.log(Logger.FINE, "DF "+myAgent.getName()+": Iterated-search "+request.getConversationId()+". Serving request # "+cnt);
          }
          cnt++;
          try {
            // Parse the request content
            Action aExpr = (Action) theDF.getContentManager().extractContent(request);
            Search search = (Search) aExpr.getAction();
            SearchConstraints constraints = search.getConstraints();
            int maxResult = theDF.getActualMaxResults(constraints);
           
            // If this is the first REQUEST, create the Iterator
            if (iterator == null) {
View Full Code Here

  */
   public RequestFIPAServiceBehaviour(Agent a, AID receiver, String actionName, Object agentDescription, SearchConstraints constraints) throws FIPAException {
       //super(a, new ACLMessage(ACLMessage.REQUEST), mt);
       super(a,new ACLMessage(ACLMessage.REQUEST));
       ACLMessage msg = FIPAService.createRequestMessage(a,receiver);
     Action act = new Action();
     act.setActor(receiver);
     if (actionName.equalsIgnoreCase(FIPAManagementVocabulary.REGISTER)) {
       Register action = new Register();
       action.setDescription(agentDescription);
       act.setAction(action);
     }
     else if (actionName.equalsIgnoreCase(FIPAManagementVocabulary.DEREGISTER)) {
       Deregister action = new Deregister();
       action.setDescription(agentDescription);
       act.setAction(action);
     }
     else if (actionName.equalsIgnoreCase(FIPAManagementVocabulary.MODIFY)) {
       Modify action = new Modify();
       action.setDescription(agentDescription);
       act.setAction(action);
     }
     else if (actionName.equalsIgnoreCase(FIPAManagementVocabulary.SEARCH)) {
       Search action = new Search();
       action.setDescription(agentDescription);
       action.setConstraints(constraints);
       act.setAction(action);
       // set a timeout for the recursive search.
       msg.setReplyByDate(new Date(System.currentTimeMillis()+ timeout));
     }
     else
       throw new UnsupportedFunction();
View Full Code Here

    ca.setAgentName(localName);
    ca.setClassName("jade.tools.logging.LogHelperAgent");
    ca.addArguments(myAgent.getAID());
    ca.setContainer(new ContainerID(containerName, null));
   
    Action act = new Action();
    act.setActor(myAgent.getAMS());
    act.setAction(ca);
   
    try {
      myAgent.getContentManager().fillContent(request, act);
      ACLMessage inform = FIPAService.doFipaRequestClient(myAgent, request, 10000);
      if (inform != null) {
View Full Code Here

    ACLMessage request = createAMSRequest();
   
    KillAgent ka = new KillAgent();
    ka.setAgent(controller);
   
    Action act = new Action();
    act.setActor(myAgent.getAMS());
    act.setAction(ka);
   
    try {
      myAgent.getContentManager().fillContent(request, act);
      FIPAService.doFipaRequestClient(myAgent, request, 10000);
    }
View Full Code Here

  private List remoteRetrieveLogInfo(AID helper) throws FIPAException {
    ACLMessage request = createHelperRequest(helper);
   
    GetAllLoggers gal = new GetAllLoggers(myLogManager.getClass().getName(), null);
   
    Action act = new Action();
    act.setActor(helper);
    act.setAction(gal);
   
    try {
      myAgent.getContentManager().fillContent(request, act);
      ACLMessage inform = FIPAService.doFipaRequestClient(myAgent, request, 10000);
      if (inform != null) {
View Full Code Here

  private void remoteSetLogLevel(AID helper, String name, int level) throws FIPAException {
    ACLMessage request = createHelperRequest(helper);
   
    SetLevel sl = new SetLevel(name, level);
   
    Action act = new Action();
    act.setActor(helper);
    act.setAction(sl);
   
    try {
      myAgent.getContentManager().fillContent(request, act);
      ACLMessage inform = FIPAService.doFipaRequestClient(myAgent, request, 10000);
      if (inform == null) {
View Full Code Here

TOP

Related Classes of jade.content.onto.basic.Action

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.