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 package JADE_SL;
25
26 /***
27 * This class provides a single access point for the
28 * set of constants
29 * already defined by FIPA.
30 * The constants have been grouped by category (i.e. ACLCodecs,
31 * Content Languages, MTPs, ...), with one inner class implementing each
32 * category.
33 * @author Fabio Bellifemine - TILab
34 * @version $Date: 2003/10/09 13:00:35 $ $Revision: 1.1.1.1 $
35 **/
36
37 public class FIPANames {
38 /***
39 * Set of constants that identifies the Codec of ACL Messages and
40 * that can be assigned via
41 * <code> ACLMessage.getEnvelope().setAclRepresentation(FIPANames.ACLCodec.BITEFFICIENT); </code>
42 **/
43 public static class ACLCodec {
44 /*** Syntactic representation of ACL in string form
45 * @see <a href=http://www.fipa.org/specs/fipa00070/XC00070f.html>FIPA Spec</a>
46 **/
47 public static final String STRING = "fipa.acl.rep.string.std";
48 /*** Syntactic representation of ACL in XML form
49 * @see <a href=http://www.fipa.org/specs/fipa00071/XC00071b.html>FIPA Spec</a>
50 **/
51 public static final String XML = "fipa.acl.rep.xml.std";
52 /*** Syntactic representation of ACL in XML form
53 * @see <a href=http://www.fipa.org/specs/fipa00069/XC00069e.html>FIPA Spec</a>
54 **/
55 public static final String BITEFFICIENT = "fipa.acl.rep.bitefficient.std";
56 }
57
58 /***
59 * Set of constants that identifies the Interaction Protocols and that
60 * can be assigned via
61 * <code>ACLMessage.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST)
62 * </code>
63 **/
64 public static class InteractionProtocol {
65 }
66
67 /***
68 * Set of constants that identifies the content languages and that
69 * can be assigned via
70 * <code>ACLMessage.setLanguage(FIPANames.ContentLanguage.SL0)
71 * </code>
72 **/
73 public static class ContentLanguage {
74 public static final String FIPA_SL0 = "FIPA-SL0";
75 public static final String FIPA_SL1 = "FIPA-SL1";
76 public static final String FIPA_SL2 = "FIPA-SL2";
77 public static final String FIPA_SL = "FIPA-SL";
78 }
79
80 /***
81 * Set of constants that identifies the Message Transport Protocols.
82 **/
83 public static class MTP {
84 /***
85 * IIOP-based MTP
86 * @see <a href=http://www.fipa.org/specs/fipa00075/XC00075e.html>FIPA Spec</a>
87 **/
88 public static final String IIOP = "fipa.mts.mtp.iiop.std";
89 /***
90 * WAP-based MTP
91 * @see <a href=http://www.fipa.org/specs/fipa00076/XC00076c.html>FIPA Spec</a>
92 **/
93 public static final String WAP = "fipa.mts.mtp.wap.std";
94 /***
95 * HTTP-based MTP
96 * @see <a href=http://www.fipa.org/specs/fipa00084/XC00084d.html>FIPA Spec</a>
97 **/
98 public static final String HTTP = "fipa.mts.mtp.http.std";
99 }
100 }