bdi4jade
Changes
bdi-jade-test/src/bdi4jade/examples/interactionprotocol/cooperative/CooperativeCapability.java 6(+3 -3)
bdi-jade-test/src/bdi4jade/examples/interactionprotocol/cooperative/CooperativeServiceProvider.java 10(+5 -5)
bdi-jade-test/src/bdi4jade/examples/interactionprotocol/experiment/CooperativeRunner.java 188(+94 -94)
bdi-jade-test/src/bdi4jade/examples/interactionprotocol/experiment/ExperimentRunner1.java 445(+0 -445)
bdi-jade-test/src/bdi4jade/examples/interactionprotocol/experiment/RemedialRunnerOld.java 360(+0 -360)
Details
diff --git a/bdi-jade-test/src/bdi4jade/examples/interactionprotocol/experiment/PassiveRunner.java b/bdi-jade-test/src/bdi4jade/examples/interactionprotocol/experiment/PassiveRunner.java
index 74c7ff3..bb22069 100644
--- a/bdi-jade-test/src/bdi4jade/examples/interactionprotocol/experiment/PassiveRunner.java
+++ b/bdi-jade-test/src/bdi4jade/examples/interactionprotocol/experiment/PassiveRunner.java
@@ -40,10 +40,10 @@ import bdi4jade.examples.interactionprotocol.domain.Component;
import bdi4jade.examples.interactionprotocol.domain.Link;
import bdi4jade.examples.interactionprotocol.domain.LinkMonitor;
import bdi4jade.examples.interactionprotocol.domain.Service;
-import bdi4jade.examples.interactionprotocol.dummy.DummyCapability;
-import bdi4jade.examples.interactionprotocol.dummy.DummyServiceProvider;
import bdi4jade.examples.interactionprotocol.goal.MonitorMetricsGoal;
import bdi4jade.examples.interactionprotocol.goal.RequestServiceGoal;
+import bdi4jade.examples.interactionprotocol.passive.PassiveCapability;
+import bdi4jade.examples.interactionprotocol.passive.PassiveServiceProvider;
import jade.BootProfileImpl;
import jade.core.ProfileImpl;
import jade.wrapper.AgentContainer;
@@ -62,8 +62,8 @@ public class PassiveRunner implements GoalListener {
private jade.core.Runtime runtime;
private PlatformController controller;
- private ArrayList<DummyServiceProvider> providerAgents;
- private ArrayList<DummyServiceProvider> supportingAgents;
+ private ArrayList<PassiveServiceProvider> providerAgents;
+ private ArrayList<PassiveServiceProvider> supportingAgents;
private SingleCapabilityAgent client;
private int providerFailure;
@@ -94,10 +94,10 @@ public class PassiveRunner implements GoalListener {
AgentController ac = ((AgentContainer) controller).acceptNewAgent("CLIENT", this.client);
ac.start();
- ArrayList<DummyServiceProvider> agents = new ArrayList<>();
+ ArrayList<PassiveServiceProvider> agents = new ArrayList<>();
agents.addAll(providerAgents);
agents.addAll(supportingAgents);
- for (DummyServiceProvider agent : agents) {
+ for (PassiveServiceProvider agent : agents) {
ac = ((AgentContainer) controller).acceptNewAgent(agent.getCustomName(), agent);
ac.start();
setupDB(agent);
@@ -106,7 +106,7 @@ public class PassiveRunner implements GoalListener {
e.printStackTrace();
}
- for (DummyServiceProvider providers : this.providerAgents) {
+ for (PassiveServiceProvider providers : this.providerAgents) {
providers.register();
}
@@ -123,7 +123,7 @@ public class PassiveRunner implements GoalListener {
Thread.sleep(2000);
System.out.println("#ITERATION: " + this.iteration);
for (int i = 0; i < 3; i++) {
- DummyServiceProvider supporter = this.supportingAgents.get(i);
+ PassiveServiceProvider supporter = this.supportingAgents.get(i);
supporter.addGoal(new RequestServiceGoal(new Service("B"), null), this);
supporter.addGoal(new RequestServiceGoal(new Service("D"), null), this);
supporter.addGoal(new RequestServiceGoal(new Service("E"), null), this);
@@ -132,7 +132,7 @@ public class PassiveRunner implements GoalListener {
}
for (int i = 3; i < 6; i++) {
- DummyServiceProvider supporter = this.supportingAgents.get(i);
+ PassiveServiceProvider supporter = this.supportingAgents.get(i);
supporter.addGoal(new RequestServiceGoal(new Service("C"), null), this);
supporter.addGoal(new RequestServiceGoal(new Service("G"), null), this);
supporter.addGoal(new RequestServiceGoal(new Service("N"), null), this);
@@ -152,7 +152,7 @@ public class PassiveRunner implements GoalListener {
if (event.getStatus().isFinished() && event.getGoal() instanceof MonitorMetricsGoal) {
if (iteration < ITERATIONS) {
if (iteration == providerFailure) {
- DummyServiceProvider agent = this.providerAgents.get(15);
+ PassiveServiceProvider agent = this.providerAgents.get(15);
@SuppressWarnings("unchecked")
Belief<String, Boolean> failure = (Belief<String, Boolean>) agent.getCapability().getBeliefBase()
.getBelief("failure");
@@ -163,7 +163,7 @@ public class PassiveRunner implements GoalListener {
LinkMonitor.getInstance().getAnomalousLinks().add(link);
System.out.println("Setting failure to link: " + link);
} else if (iteration == providerAndLinkFailure) {
- DummyServiceProvider agent = this.providerAgents.get(6);
+ PassiveServiceProvider agent = this.providerAgents.get(6);
@SuppressWarnings("unchecked")
Belief<String, Boolean> failure = (Belief<String, Boolean>) agent.getCapability().getBeliefBase()
.getBelief("failure");
@@ -181,8 +181,8 @@ public class PassiveRunner implements GoalListener {
}
}
- public ArrayList<DummyServiceProvider> createProviderAgents() {
- ArrayList<DummyServiceProvider> agents = new ArrayList<>();
+ public ArrayList<PassiveServiceProvider> createProviderAgents() {
+ ArrayList<PassiveServiceProvider> agents = new ArrayList<>();
HashMap<Service, ArrayList<Service>> agentServices = new HashMap<>();
ArrayList<Service> serviceDependences = new ArrayList<>();
@@ -192,10 +192,10 @@ public class PassiveRunner implements GoalListener {
HashMap<Service, Component> currentProviders = new HashMap<>();
currentProviders.put(new Service("B"), new Component("AGENT02"));
currentProviders.put(new Service("C"), new Component("AGENT04"));
- DummyCapability capability = new DummyCapability(agentServices);
+ PassiveCapability capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("A"), 1);
- DummyServiceProvider agent = new DummyServiceProvider("AGENT01", capability);
+ PassiveServiceProvider agent = new PassiveServiceProvider("AGENT01", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -206,10 +206,10 @@ public class PassiveRunner implements GoalListener {
currentProviders = new HashMap<>();
currentProviders.put(new Service("D"), new Component("AGENT07"));
currentProviders.put(new Service("E"), new Component("AGENT08"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("B"), 2);
- agent = new DummyServiceProvider("AGENT02", capability);
+ agent = new PassiveServiceProvider("AGENT02", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -218,10 +218,10 @@ public class PassiveRunner implements GoalListener {
agentServices.put(new Service("B"), serviceDependences);
currentProviders = new HashMap<>();
currentProviders.put(new Service("F"), new Component("AGENT10"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("B"), 5);
- agent = new DummyServiceProvider("AGENT03", capability);
+ agent = new PassiveServiceProvider("AGENT03", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -230,10 +230,10 @@ public class PassiveRunner implements GoalListener {
agentServices.put(new Service("C"), serviceDependences);
currentProviders = new HashMap<>();
currentProviders.put(new Service("G"), new Component("AGENT11"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("C"), 2);
- agent = new DummyServiceProvider("AGENT04", capability);
+ agent = new PassiveServiceProvider("AGENT04", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -242,10 +242,10 @@ public class PassiveRunner implements GoalListener {
agentServices.put(new Service("C"), serviceDependences);
currentProviders = new HashMap<>();
currentProviders.put(new Service("H"), new Component("AGENT13"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("C"), 5);
- agent = new DummyServiceProvider("AGENT05", capability);
+ agent = new PassiveServiceProvider("AGENT05", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -254,18 +254,18 @@ public class PassiveRunner implements GoalListener {
agentServices.put(new Service("D"), serviceDependences);
currentProviders = new HashMap<>();
currentProviders.put(new Service("I"), new Component("AGENT14"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("D"), 5);
- agent = new DummyServiceProvider("AGENT06", capability);
+ agent = new PassiveServiceProvider("AGENT06", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("D"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("D"), 2);
- agent = new DummyServiceProvider("AGENT07", capability);
+ agent = new PassiveServiceProvider("AGENT07", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -274,10 +274,10 @@ public class PassiveRunner implements GoalListener {
agentServices.put(new Service("E"), serviceDependences);
currentProviders = new HashMap<>();
currentProviders.put(new Service("J"), new Component("AGENT16"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("E"), 2);
- agent = new DummyServiceProvider("AGENT08", capability);
+ agent = new PassiveServiceProvider("AGENT08", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -286,10 +286,10 @@ public class PassiveRunner implements GoalListener {
agentServices.put(new Service("E"), serviceDependences);
currentProviders = new HashMap<>();
currentProviders.put(new Service("K"), new Component("AGENT17"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("E"), 5);
- agent = new DummyServiceProvider("AGENT09", capability);
+ agent = new PassiveServiceProvider("AGENT09", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -300,10 +300,10 @@ public class PassiveRunner implements GoalListener {
currentProviders = new HashMap<>();
currentProviders.put(new Service("L"), new Component("AGENT18"));
currentProviders.put(new Service("M"), new Component("AGENT19"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("F"), 4);
- agent = new DummyServiceProvider("AGENT10", capability);
+ agent = new PassiveServiceProvider("AGENT10", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -312,10 +312,10 @@ public class PassiveRunner implements GoalListener {
agentServices.put(new Service("G"), serviceDependences);
currentProviders = new HashMap<>();
currentProviders.put(new Service("N"), new Component("AGENT21"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("G"), 2);
- agent = new DummyServiceProvider("AGENT11", capability);
+ agent = new PassiveServiceProvider("AGENT11", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -326,10 +326,10 @@ public class PassiveRunner implements GoalListener {
currentProviders = new HashMap<>();
currentProviders.put(new Service("O"), new Component("AGENT22"));
currentProviders.put(new Service("P"), new Component("AGENT23"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("G"), 5);
- agent = new DummyServiceProvider("AGENT12", capability);
+ agent = new PassiveServiceProvider("AGENT12", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -338,18 +338,18 @@ public class PassiveRunner implements GoalListener {
agentServices.put(new Service("H"), serviceDependences);
currentProviders = new HashMap<>();
currentProviders.put(new Service("Q"), new Component("AGENT24"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("H"), 4);
- agent = new DummyServiceProvider("AGENT13", capability);
+ agent = new PassiveServiceProvider("AGENT13", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("I"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("I"), 4);
- agent = new DummyServiceProvider("AGENT14", capability);
+ agent = new PassiveServiceProvider("AGENT14", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -360,18 +360,18 @@ public class PassiveRunner implements GoalListener {
currentProviders = new HashMap<>();
currentProviders.put(new Service("R"), new Component("AGENT25"));
currentProviders.put(new Service("S"), new Component("AGENT26"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("J"), 5);
- agent = new DummyServiceProvider("AGENT15", capability);
+ agent = new PassiveServiceProvider("AGENT15", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("J"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("J"), 2);
- agent = new DummyServiceProvider("AGENT16", capability);
+ agent = new PassiveServiceProvider("AGENT16", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -380,26 +380,26 @@ public class PassiveRunner implements GoalListener {
agentServices.put(new Service("K"), serviceDependences);
currentProviders = new HashMap<>();
currentProviders.put(new Service("T"), new Component("AGENT27"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("K"), 4);
- agent = new DummyServiceProvider("AGENT17", capability);
+ agent = new PassiveServiceProvider("AGENT17", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("L"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("L"), 4);
- agent = new DummyServiceProvider("AGENT18", capability);
+ agent = new PassiveServiceProvider("AGENT18", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("M"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("M"), 4);
- agent = new DummyServiceProvider("AGENT19", capability);
+ agent = new PassiveServiceProvider("AGENT19", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -410,10 +410,10 @@ public class PassiveRunner implements GoalListener {
currentProviders = new HashMap<>();
currentProviders.put(new Service("U"), new Component("AGENT28"));
currentProviders.put(new Service("V"), new Component("AGENT29"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("N"), 5);
- agent = new DummyServiceProvider("AGENT20", capability);
+ agent = new PassiveServiceProvider("AGENT20", capability);
agents.add(agent);
agentServices = new HashMap<>();
@@ -422,97 +422,97 @@ public class PassiveRunner implements GoalListener {
agentServices.put(new Service("N"), serviceDependences);
currentProviders = new HashMap<>();
currentProviders.put(new Service("X"), new Component("AGENT30"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
capability.setServiceCost(new Service("N"), 2);
- agent = new DummyServiceProvider("AGENT21", capability);
+ agent = new PassiveServiceProvider("AGENT21", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("O"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("O"), 4);
- agent = new DummyServiceProvider("AGENT22", capability);
+ agent = new PassiveServiceProvider("AGENT22", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("P"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("P"), 4);
- agent = new DummyServiceProvider("AGENT23", capability);
+ agent = new PassiveServiceProvider("AGENT23", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("Q"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("Q"), 4);
- agent = new DummyServiceProvider("AGENT24", capability);
+ agent = new PassiveServiceProvider("AGENT24", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("R"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("R"), 4);
- agent = new DummyServiceProvider("AGENT25", capability);
+ agent = new PassiveServiceProvider("AGENT25", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("S"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("S"), 4);
- agent = new DummyServiceProvider("AGENT26", capability);
+ agent = new PassiveServiceProvider("AGENT26", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("T"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("T"), 4);
- agent = new DummyServiceProvider("AGENT27", capability);
+ agent = new PassiveServiceProvider("AGENT27", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("U"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("U"), 4);
- agent = new DummyServiceProvider("AGENT28", capability);
+ agent = new PassiveServiceProvider("AGENT28", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("V"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("V"), 4);
- agent = new DummyServiceProvider("AGENT29", capability);
+ agent = new PassiveServiceProvider("AGENT29", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("X"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("X"), 2);
- agent = new DummyServiceProvider("AGENT30", capability);
+ agent = new PassiveServiceProvider("AGENT30", capability);
agents.add(agent);
agentServices = new HashMap<>();
serviceDependences = new ArrayList<>();
agentServices.put(new Service("X"), serviceDependences);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setServiceCost(new Service("X"), 5);
- agent = new DummyServiceProvider("AGENT31", capability);
+ agent = new PassiveServiceProvider("AGENT31", capability);
agents.add(agent);
return agents;
}
- public ArrayList<DummyServiceProvider> createSupportingAgents() {
- ArrayList<DummyServiceProvider> agents = new ArrayList<>();
+ public ArrayList<PassiveServiceProvider> createSupportingAgents() {
+ ArrayList<PassiveServiceProvider> agents = new ArrayList<>();
HashMap<Service, ArrayList<Service>> agentServices = new HashMap<>();
HashMap<Service, Component> currentProviders = new HashMap<>();
@@ -521,19 +521,19 @@ public class PassiveRunner implements GoalListener {
currentProviders.put(new Service("E"), new Component("AGENT08"));
currentProviders.put(new Service("J"), new Component("AGENT16"));
- DummyCapability capability = new DummyCapability(agentServices);
+ PassiveCapability capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
- DummyServiceProvider agent = new DummyServiceProvider("SUPPORT1", capability);
+ PassiveServiceProvider agent = new PassiveServiceProvider("SUPPORT1", capability);
agents.add(agent);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
- agent = new DummyServiceProvider("SUPPORT2", capability);
+ agent = new PassiveServiceProvider("SUPPORT2", capability);
agents.add(agent);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
- agent = new DummyServiceProvider("SUPPORT3", capability);
+ agent = new PassiveServiceProvider("SUPPORT3", capability);
agents.add(agent);
currentProviders = new HashMap<>();
@@ -542,25 +542,25 @@ public class PassiveRunner implements GoalListener {
currentProviders.put(new Service("N"), new Component("AGENT21"));
currentProviders.put(new Service("X"), new Component("AGENT30"));
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
- agent = new DummyServiceProvider("SUPPORT4", capability);
+ agent = new PassiveServiceProvider("SUPPORT4", capability);
agents.add(agent);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
- agent = new DummyServiceProvider("SUPPORT5", capability);
+ agent = new PassiveServiceProvider("SUPPORT5", capability);
agents.add(agent);
- capability = new DummyCapability(agentServices);
+ capability = new PassiveCapability(agentServices);
capability.setCurrentProviders(currentProviders);
- agent = new DummyServiceProvider("SUPPORT6", capability);
+ agent = new PassiveServiceProvider("SUPPORT6", capability);
agents.add(agent);
return agents;
}
- private void setupDB(DummyServiceProvider agent) {
+ private void setupDB(PassiveServiceProvider agent) {
TraceDAO dao = new TraceDAO(agent.getAID().getLocalName());
dao.dropCollection();
}
diff --git a/bdi-jade-test/src/bdi4jade/examples/interactionprotocol/plan/VerifyInternalOrExternalCausePlanBody.java b/bdi-jade-test/src/bdi4jade/examples/interactionprotocol/plan/VerifyInternalOrExternalCausePlanBody.java
index 49efe76..c6256fe 100644
--- a/bdi-jade-test/src/bdi4jade/examples/interactionprotocol/plan/VerifyInternalOrExternalCausePlanBody.java
+++ b/bdi-jade-test/src/bdi4jade/examples/interactionprotocol/plan/VerifyInternalOrExternalCausePlanBody.java
@@ -237,7 +237,6 @@ public class VerifyInternalOrExternalCausePlanBody extends CauseEffectKnowledgeM
return childCid;
}
- // Later I need to add the quality feature as a parameter.
private ArrayList<Long> getFilteredData(String service, String provider, String parentCid) {
TraceDAO dao = new TraceDAO(this.getAgent().getLocalName());
ArrayList<Trace> traces = dao.getTracesOfProvidedByBefore(service, provider, parentCid);