View Javadoc

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  import java.util.Date;
28  
29  /***
30   * @author Federico Bergenti - Universita` di Parma
31   */
32  public class AbsConcept extends AbsPrimitiveSlotsHolder implements AbsTerm {
33  
34      /***
35       * Construct an Abstract descriptor to hold a concept of
36       * the proper type (e.g. PERSON, ADDRESS...).
37       * @param typeName The name of the type of the concept held by 
38       * this abstract descriptor.
39       */
40      public AbsConcept(String typeName) {
41          super(typeName);
42      }
43  
44      /***
45       * Sets an attribute of the concept held by this
46       * abstract descriptor.
47       * @param name The name of the attribute to be set.
48       * @param value The new value of the attribute.
49       */
50      public void set(String name, AbsTerm value) {
51          super.set(name, value);
52      } 
53  
54      /***
55       * Gets the value of an attribute of the concept 
56       * held by this abstract descriptor.
57       * @param name The name of the attribute.
58       * @return value The value of the attribute.
59       */
60      public AbsTerm getAbsTerm(String name) {
61          return (AbsTerm)getAbsObject(name);
62      }
63  
64  }
65