RE: [jade-develop] Access scope of fields in agents


Subject: RE: [jade-develop] Access scope of fields in agents
From: Caire Giovanni (caire@XRR3.CSELT.IT)
Date: Mon Feb 24 2003 - 08:46:54 MET


Hi,

This is definitely a Java issue. JADE agents and behaviour are all Java classes. If you define a field in class A do objects of class B and C have access to this field? Of course it depends on the modifiers for that field, on whether B and C are inner classes of A.....

Bye

Giovanni

-----Original Message-----
From: David [mailto:amdawong@starhub.net.sg]
Sent: domenica 23 febbraio 2003 9.53
To: jade-develop@sharon.cselt.it
Subject: [jade-develop] Access scope of fields in agents

Dear jaders,

I am a newbie at JADE. I have a question pertaining to the access scope
of
Fields in agents.

Suppose I have a field in an agent class as follows

Vector someVector;

Will the behaviours of this agent be able to access this vector ?
If yes, how do they access it ? Is it via the super keyword ?
Also, if the behaviour of this agent can access this vector, what access
do they have ? Do they have private, protect, default of public access ?

Regards
David

_______________________________________________
jade-develop mailing list
jade-develop@sharon.cselt.it
http://sharon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe
_______________________________________________
jade-develop mailing list
jade-develop@sharon.cselt.it
http://sharon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe

------_=_NextPart_001_01C2DBF7.C697D967--
ReSent-Date: Mon, 24 Feb 2003 12:39:51 +0100 (MET)
ReSent-From: Fabio Bellifemine <bellif@sharon.cselt.it>
ReSent-To: jade-develop-hypermail@sharon
ReSent-Subject: RE: [jade-develop] Access scope of fields in agents
ReSent-Message-ID: <Pine.SO4.4.05.10302241239510.20050@sharon.cselt.it>

Hi,

This is definitely a Java issue. JADE agents and behaviour are all Java classes. If you define a field in class A do objects of class B and C have access to this field? Of course it depends on the modifiers for that field, on whether B and C are inner classes of A.....

Bye

Giovanni

-----Original Message-----
From: David [mailto:amdawong@starhub.net.sg]
Sent: domenica 23 febbraio 2003 9.53
To: jade-develop@sharon.cselt.it
Subject: [jade-develop] Access scope of fields in agents

Dear jaders,

I am a newbie at JADE. I have a question pertaining to the access scope
of
Fields in agents.

Suppose I have a field in an agent class as follows

Vector someVector;

Will the behaviours of this agent be able to access this vector ?
If yes, how do they access it ? Is it via the super keyword ?
Also, if the behaviour of this agent can access this vector, what access
do they have ? Do they have private, protect, default of public access ?

Regards
David

_______________________________________________
jade-develop mailing list
jade-develop@sharon.cselt.it
http://sharon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe
_______________________________________________
jade-develop mailing list
jade-develop@sharon.cselt.it
http://sharon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe

------_=_NextPart_001_01C2DBF7.C697D967--



This archive was generated by hypermail 2a22 : Mon Feb 24 2003 - 12:39:59 MET