Package jade.content.onto.basic

Examples of jade.content.onto.basic.Action


    this.reqMsg = (ACLMessage)request.clone();
    this.action = actionName;
    this.receiver = receiver;
    this.parent = (AID)parentDF;

    Action act = new Action();
    act.setActor(receiver);
    if(actionName.equalsIgnoreCase(DFAppletVocabulary.FEDERATE))
    {

      Federate action = new Federate();
      action.setDf((AID) parentDF);
      action.setDescription((DFAgentDescription) description);

      act.setAction(action);

    }
    else
    if(actionName.equalsIgnoreCase(DFAppletVocabulary.GETDESCRIPTION))
      act.setAction(new GetDescription());

    else
    if(actionName.equalsIgnoreCase(DFAppletVocabulary.GETPARENTS))
      act.setAction(new GetParents());
    else
    if(actionName.equalsIgnoreCase(DFAppletVocabulary.GETDESCRIPTIONUSED))
    {
      GetDescriptionUsed action = new GetDescriptionUsed();
      action.setParentDF((AID) parentDF);
      act.setAction(action);
    }
    else
    if(actionName.equalsIgnoreCase(DFAppletVocabulary.DEREGISTERFROM))
    {
      DeregisterFrom action = new DeregisterFrom();
      action.setDf((AID) parentDF);
      action.setDescription((DFAgentDescription) description);

      act.setAction(action);
    }
    else
    if(actionName.equalsIgnoreCase(DFAppletVocabulary.REGISTERWITH))
    {
      RegisterWith action = new RegisterWith();
      action.setDf((AID)parentDF);
      action.setDescription((DFAgentDescription)description);

      act.setAction(action);
    }
    else
    if(actionName.equalsIgnoreCase(DFAppletVocabulary.SEARCHON))
    {
      SearchOn action = new SearchOn();
      action.setDf((AID)parentDF);
      action.setDescription((DFAgentDescription)description);
      action.setConstraints(constraints);

      act.setAction(action);
    }
    else
    if(actionName.equalsIgnoreCase(DFAppletVocabulary.MODIFYON))
    {
      ModifyOn action = new ModifyOn();
      action.setDf((AID)parentDF);
      action.setDescription((DFAgentDescription)description);

      act.setAction(action);
    }
    else
    throw new UnsupportedFunction();

View Full Code Here


    this.action = actionName;
    this.dfd = agentDescription;
    this.receiver =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(sc);
       act.setAction(action);
     }
     else
       throw new UnsupportedFunction();

     // initialize SL0 Codec and FIPAAgentManagementOntology
View Full Code Here

      if (msg != null) {
        ACLMessage reply = msg.createReply();
       
        if (accept(msg)) {
          try {
            Action actionExpr = (Action) myContentManager.extractContent(msg);
            LoadBehaviour lb = (LoadBehaviour) actionExpr.getAction();
           
            // Load the behaviour
            String className = lb.getClassName();
            Behaviour b = null;
            byte[] code = lb.getCode();
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.