Examples of ArtifactId


Examples of cartago.ArtifactId

    addBehaviour(new OneShotBehaviour() {
     
      @Override
      public void action() {
       
        ArtifactId art = Role.createArtifact(ARTIFACT_NAME, CommunicationArtifactImpl.class);
        CARole user = (CARole)(Role.enact(CommunicationArtifact.CA_ROLE, art, this, myAgent.getAID()));
       
        try {
          Thread.sleep(1000);
        } catch (InterruptedException e) {
View Full Code Here

Examples of cartago.ArtifactId

    boolean maximumReached = false;
 
   
    @Override
    public void action() {
      ArtifactId art = Role.createArtifact(ARTIFACT_NAME, CNPArtifact.class);
      initiator = (Initiator)(Role.enact(CNPArtifact.INITIATOR_ROLE, art, this, myAgent.getAID()));
     
      initiator.startObserving(this);
//      initiator.registerMethod(this, "listenerProposal");
//      logger.debug("Method registered.");
View Full Code Here

Examples of cartago.ArtifactId

    this.artifactName = artifactName;
  }
 
  @Override
  public void action() {
    ArtifactId art = Role.createArtifact(artifactName,
        CNPArtifactTimerMaxPart.class);
    initiator = (Initiator) (Role.enact(CNPArtifactTimerMaxPart.INITIATOR_ROLE,
        art, this, myAgent.getAID()));

    initiator.startObserving(this);
View Full Code Here

Examples of cartago.ArtifactId

    int maximumProposals = 3;
    boolean maximumReached = false;

    @Override
    public void action() {
      ArtifactId art = Role.createArtifact(ARTIFACT_NAME,
          CNPArtifact.class);
      initiator = (Initiator) (Role.enact(CNPArtifact.INITIATOR_ROLE,
          art, this, myAgent.getAID()));
     
     
View Full Code Here

Examples of cartago.ArtifactId

  protected void setup() {
    addBehaviour(new OneShotBehaviour() {
     
      @Override
      public void action() {
        ArtifactId art = Role.createArtifact(ARTIFACT_NAME, CommunicationArtifactImpl.class);
        CARole user = (CARole)(Role.enact(CommunicationArtifact.CA_ROLE, art, this, myAgent.getAID()));
        RoleId receiver = new RoleId(CommunicationArtifact.CA_ROLE, RoleId.GENERIC_ROLE);
        try {
          Thread.sleep(1000);
        } catch (InterruptedException e) {
View Full Code Here

Examples of cartago.ArtifactId

    addBehaviour(new OneShotBehaviour() {
     
      @Override
      public void action() {
       
        ArtifactId art = Role.createArtifact(ARTIFACT_NAME, CommunicationArtifactImpl.class);
        CARole user = (CARole)(Role.enact(CommunicationArtifact.CA_ROLE, art, this, myAgent.getAID()));
       
        try {
          Thread.sleep(1000);
        } catch (InterruptedException e) {
View Full Code Here

Examples of org.apache.ivy.core.module.id.ArtifactId

*/
public class DefaultExcludeRuleConverter implements ExcludeRuleConverter {
    public DefaultExcludeRule createExcludeRule(String configurationName, ExcludeRule excludeRule) {
        String org = GUtil.elvis(excludeRule.getExcludeArgs().get(ExcludeRule.GROUP_KEY), PatternMatcher.ANY_EXPRESSION);
        String module = GUtil.elvis(excludeRule.getExcludeArgs().get(ExcludeRule.MODULE_KEY), PatternMatcher.ANY_EXPRESSION);
        DefaultExcludeRule ivyExcludeRule = new DefaultExcludeRule(new ArtifactId(
                new ModuleId(org, module), PatternMatcher.ANY_EXPRESSION,
                PatternMatcher.ANY_EXPRESSION,
                PatternMatcher.ANY_EXPRESSION),
                ExactPatternMatcher.INSTANCE, null);
        ivyExcludeRule.addConfiguration(configurationName);
View Full Code Here

Examples of org.apache.ivy.core.module.id.ArtifactId

        }
        ModuleId mid = transform(artifactId.getModuleId(), t);
        if (mid.equals(artifactId.getModuleId())) {
            return artifactId;
        }
        return new ArtifactId(mid, artifactId.getName(), artifactId.getType(), artifactId.getExt());
    }
View Full Code Here

Examples of org.apache.ivy.core.module.id.ArtifactId

        }
        for (Iterator itExcl = excluded.iterator(); itExcl.hasNext();) {
            ModuleId excludedModule = (ModuleId) itExcl.next();
            String[] confs = dd.getModuleConfigurations();
            for (int k = 0; k < confs.length; k++) {
                dd.addExcludeRule(confs[k], new DefaultExcludeRule(new ArtifactId(excludedModule,
                        PatternMatcher.ANY_EXPRESSION, PatternMatcher.ANY_EXPRESSION,
                        PatternMatcher.ANY_EXPRESSION), ExactPatternMatcher.INSTANCE, null));
            }
        }
View Full Code Here

Examples of org.apache.ivy.core.module.id.ArtifactId

                if (profile == null) {
                    throw new ProfileNotFoundException("Execution environment profile " + env
                            + " not found");
                }
                for (String pkg : profile.getPkgNames()) {
                    ArtifactId id = new ArtifactId(ModuleId.newInstance(BundleInfo.PACKAGE_TYPE,
                        pkg), PatternMatcher.ANY_EXPRESSION, PatternMatcher.ANY_EXPRESSION,
                            PatternMatcher.ANY_EXPRESSION);
                    DefaultExcludeRule rule = new DefaultExcludeRule(id,
                            ExactOrRegexpPatternMatcher.INSTANCE, null);
                    String[] confs = md.getConfigurationsNames();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.