Caire Giovanni
2014-07-19 11:25:26 UTC
Hi,
Iâm not sure I got the point right.
Each concept in an ontology (by the way: make your ontology extend the BeanOntology class and not the Ontology class directly; this allows you to define your concepts, actions and predicate without caring about ontological schemas) is represented by a Java bean class (i.e. a class with get and set methods for all its attributes).
So the CustomerAgentStatus concept will be implemented by a Java bean similar to that below
public class CustomerAgentStatus implements Concept {
private ...
private AID currentServiceProviderAgent;
...
public AID getCurrentServiceProviderAgent() {
return currentServiceProviderAgent;
}
public void setCurrentServiceProviderAgent(AID currentServiceProviderAgent) {
this.currentServiceProviderAgent = currentServiceProviderAgent;
}
}
When a customer changes provider set the new provider AID by means of the setCurrentServiceProviderAgent() and notify other agents who need to be aware about that.
Bye,
Giovanni.
Da: shreeparna sarkar [mailto:shreeparna93 at gmail.com]
Inviato: giovedì 17 luglio 2014 22:59
A: Caire Giovanni
Oggetto: Dynamic Allocation of AIDs
Actually I'am trying to buid a Cellular Network using JAde. I'm a novice at this so please pardon any silly question.
In this The different BaseStations need to inform about the no. of client agents moving to their neighbouring cells(BaseStation regions).
Thus the AID of the Current Service Provider of a ClientAgent should be dynamic.
For this I have created
CustomerAgentStatus class
BaseStationPos class, implementing concept,
Then created the ontology classes and registered it.
However I want to include another slot, the AID of the CurrentServiceProviderAgent of that Customer in the CustomerAgent class. Then how can initialize this with a particular AID which later can be changed to AIDs of the other BaseStationagents during runtime , while it may traverse from one provider to another.
I'm using the AMS service to detect the other Base Station agents and storing them in some array.
Thanking you,
Yours faithfully,
Shreeparna Sarkar
4th Year, CSE Department,
Narula Institute of Technology
Agarpara, Kolkata.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jade.tilab.com/pipermail/jade-develop/attachments/20140719/2d94d7a1/attachment.html>
Iâm not sure I got the point right.
Each concept in an ontology (by the way: make your ontology extend the BeanOntology class and not the Ontology class directly; this allows you to define your concepts, actions and predicate without caring about ontological schemas) is represented by a Java bean class (i.e. a class with get and set methods for all its attributes).
So the CustomerAgentStatus concept will be implemented by a Java bean similar to that below
public class CustomerAgentStatus implements Concept {
private ...
private AID currentServiceProviderAgent;
...
public AID getCurrentServiceProviderAgent() {
return currentServiceProviderAgent;
}
public void setCurrentServiceProviderAgent(AID currentServiceProviderAgent) {
this.currentServiceProviderAgent = currentServiceProviderAgent;
}
}
When a customer changes provider set the new provider AID by means of the setCurrentServiceProviderAgent() and notify other agents who need to be aware about that.
Bye,
Giovanni.
Da: shreeparna sarkar [mailto:shreeparna93 at gmail.com]
Inviato: giovedì 17 luglio 2014 22:59
A: Caire Giovanni
Oggetto: Dynamic Allocation of AIDs
Actually I'am trying to buid a Cellular Network using JAde. I'm a novice at this so please pardon any silly question.
In this The different BaseStations need to inform about the no. of client agents moving to their neighbouring cells(BaseStation regions).
Thus the AID of the Current Service Provider of a ClientAgent should be dynamic.
For this I have created
CustomerAgentStatus class
BaseStationPos class, implementing concept,
Then created the ontology classes and registered it.
However I want to include another slot, the AID of the CurrentServiceProviderAgent of that Customer in the CustomerAgent class. Then how can initialize this with a particular AID which later can be changed to AIDs of the other BaseStationagents during runtime , while it may traverse from one provider to another.
I'm using the AMS service to detect the other Base Station agents and storing them in some array.
Thanking you,
Yours faithfully,
Shreeparna Sarkar
4th Year, CSE Department,
Narula Institute of Technology
Agarpara, Kolkata.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jade.tilab.com/pipermail/jade-develop/attachments/20140719/2d94d7a1/attachment.html>