1 /***
2 * ***************************************************************
3 * JADE - Java Agent DEvelopment Framework is a framework to develop
4 * multi-agent systems in compliance with the FIPA specifications.
5 * Copyright (C) 2000 CSELT S.p.A.
6 *
7 * GNU Lesser General Public License
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation,
12 * version 2.1 of the License.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the
21 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 * Boston, MA 02111-1307, USA.
23 * **************************************************************
24 */
25 package JADE_SL.abs;
26
27
28 /***
29 * The common ancestor of all abstract descriptors
30 * @author Federico Bergenti - Universita` di Parma
31 */
32 public interface AbsObject {
33 /***
34 * @return The name of the type of the object held by this
35 * abstract descriptor.
36 */
37 public String getTypeName();
38
39 /***
40 * Gets the value of an attribute of the object held by this
41 * abstract descriptor.
42 * @param name The name of the attribute.
43 * @return value The value of the attribute.
44 */
45 public AbsObject getAbsObject(String name);
46
47 /***
48 * @return the name of all attributes.
49 */
50 public String[] getNames();
51
52 /***
53 * Tests if the object is grounded, i.e., if no one of its attributes
54 * is associated with a variable
55 * @return <code>true</code> if the object is grounded.
56 */
57 public boolean isGrounded();
58
59 /***
60 * Gets the number of attributes.
61 * @return the number of attributes.
62 */
63 public int getCount();
64
65 public void dump();
66 }
67