View Javadoc

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  
27  package sl;
28  
29  import java.util.*;
30  
31  /***
32     @author Fabio Bellifemine - CSELT S.p.A.
33     @version $Date: 2003/10/09 13:00:37 $ $Revision: 1.1.1.1 $
34  */
35  
36  /***
37     This class represents the result predicate ontological role, i.e. the
38     result of an action performed by an agent.
39  */
40  public class ResultPredicate {
41  	private Action s;
42  	List result = new ArrayList();
43  	
44  	
45  	/***
46   	  This method sets the action expression for of which the result is
47   	  indicated.
48   	  @see jade.onto.basic.Action
49  	*/
50  	public void set_0(Action a){s=a;}
51  	
52  	/***
53   	  This method gets the action expression for of which the result is
54   	  indicated.
55   	  @see jade.onto.basic.Action
56  	*/
57  	public Action get_0() {return s;}
58  	
59  	/***
60   	  This method adds an item to the sequence of items representing the 
61   	  result
62  	*/
63  	public void add_1(Object o) {result.add(o);}
64  	
65  	/***
66   	  This method gets an <code>Iterator</code> over the sequence of 
67   	  items representing the result
68  	*/
69  	public Iterator getAll_1(){return result.iterator();}
70  }