1 /******************************************************************
2 JADE - Java Agent DEvelopment Framework is a framework to develop
3 multi-agent systems in compliance with the FIPA specifications.
4 Copyright (C) 2000 CSELT S.p.A.
5
6 The updating of this file to JADE 2.0 has been partially supported by the IST-1999-10211 LEAP Project
7
8 GNU Lesser General Public License
9
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation,
13 version 2.1 of the License.
14
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
19
20 You should have received a copy of the GNU Lesser General Public
21 License along with this library; if not, write to the
22 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 Boston, MA 02111-1307, USA.
24 *****************************************************************/
25
26 package sl;
27
28 /***
29 @author Fabio Bellifemine - CSELT S.p.A.
30 @version $Date: 2003/10/09 13:00:36 $ $Revision: 1.1.1.1 $
31 */
32
33 /***
34 This class represents the action expression ontological role i.e.
35 a t-uple including an agent identifier and an action performed
36 by that agent.
37 */
38 public class Action {
39 AID actor;
40 Object action;
41
42
43 /***
44 Sets the identifier of the agent performing the action.
45 */
46 public void set_0(AID a) { actor=a;}
47
48 /***
49 Gets the identifier of the agent performing the action.
50 */
51 public AID get_0() {return actor;}
52
53 /***
54 Sets the action object
55 */
56 public void set_1(Object a) { action=a;}
57
58 /***
59 Gets the action object
60 */
61 public Object get_1() {return action;}
62
63 /***
64 Sets the identifier of the agent performing the action.
65 This is equivalent to <code>set_0()</code>
66 */
67 public void setActor(AID a) {set_0(a); }
68
69 /***
70 Gets the identifier of the agent performing the action.
71 This is equivalent to <code>get_0()</code>
72 */
73 public AID getActor() { return get_0(); }
74
75 /***
76 Sets the action object.
77 This is equivalent to <code>set_1()</code>
78 */
79 public void setAction(Object a) {set_1(a);}
80
81 /***
82 Gets the action object
83 This is equivalent to <code>get_1()</code>
84 */
85 public Object getAction() { return get_1();}
86
87 }