Comments (4)
Thanks Taha. This seems to work fine.
from exampleagent.
It seems like you can only get the number of parties by using this method: public int getNumberOfParties()
. But during negotiation you can get the identifiers of agents by simply using a set/map to collect identifiers.
from exampleagent.
"But during negotiation you can get the identifiers of agents by simply using a set/map to collect identifiers."
How would you do that? I would like to get their names in the "public void init()" method. Would that be possible?
from exampleagent.
With the current API, you can not get the identifiers of agents in the init()
method. But during the negotiation, you can get the identifiers of agents in the receiveMessage(AgentID sender, Action act)
where the sender
is the identifier of an agent. For example:
public class ExampleAgent extends AbstractNegotiationParty {
private final String description = "Example Agent";
private Set<AgentID> identifiers = new HashSet<>();
...
@Override
public void receiveMessage(AgentID sender, Action act) {
super.receiveMessage(sender, act);
if (!identifiers.contains(sender)) {
identifiers.add(sender);
}
...
from exampleagent.
Related Issues (20)
- Bidding strategy HOT 3
- Calculating the nash point HOT 3
- What's the meaning of the type? HOT 1
- Use of maven dependencies HOT 8
- Single negotiation session log files HOT 1
- How to create a bid from scratch? HOT 2
- Import statement of a new class file HOT 3
- Papers HOT 2
- A question of 'Accessing the evaluation of a value' HOT 1
- domain does not match the negotiation domain HOT 1
- Get a bid value and compare them HOT 3
- Ubuntu log files HOT 3
- How to make jar in Intellij on MAC
- how to calculate Pareto frontier?
- The offerMap error is not logged HOT 1
- How to know when the negotiation ends? HOT 1
- Questions regarding estimating Utility under uncertainty HOT 2
- Running-a-negotiation-session-via-command-line HOT 3
- Negotiation crashing when Uncertainty enabled but preference profile Nro. Rankings is 0 HOT 1
- Failures in the negotiation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exampleagent.