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 GNU Lesser General Public License
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation,
11 version 2.1 of the License.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the
20 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.
22 *****************************************************************/
23
24
25 package sl;
26 import java.util.ArrayList;
27 import java.util.Iterator;
28
29
30 public class AnOntology {
31 private String name;
32 private ArrayList roles = new ArrayList();
33 public AnOntology() {}
34 public void setName(String n) { name=n; }
35 public String getName() {return name;}
36 public void set_0(String n) { setName(n); }
37 public String get_0() {return getName();}
38 public void addRoles(Role r) {roles.add(r); }
39 public boolean removeRoles(Role r) {return roles.remove(r);}
40 public void clearAllRoles() {roles.clear();}
41 public Iterator getAllRoles() {return roles.iterator();}
42 public void add_1(Role r) {addRoles(r);}
43 public Iterator getAll_1() {return getAllRoles();}
44 }