Jadex 0.96-beta1

jadex.adapter.fipa
Class SFipa

java.lang.Object
  extended by jadex.adapter.fipa.SFipa

public class SFipa
extends Object

Helper class for JADE specific issues.


Field Summary
static String ACCEPT_PROPOSAL
           
static String ACTION_CLASS
           
static String AGREE
           
static AgentIdentifier AMS
          The FIPA AMS local agent identifier.
static String CANCEL
           
static String CFP
           
static String CONFIRM
           
static String CONTENT
           
static String CONTENT_CLASS
           
static String CONTENT_START
           
static String CONVERSATION_ID
           
static AgentIdentifier DF
          The FIPA DF local agent identifier.
static String DISCONFIRM
           
static String ENCODING
           
static String FAILURE
           
static String FIPA_SL
           
static String FIPA_SL0
           
static String FIPA_SL1
           
static String FIPA_SL2
           
static String IN_REPLY_TO
           
static String INFORM
           
static String INFORM_IF
           
static String INFORM_REF
           
static String JAVA_XML
           
static String LANGUAGE
           
static Set MESSAGE_ATTRIBUTES
          The allowed message attributes.
static String MESSAGE_TYPE_NAME_FIPA
          The FIPA message type.
static String NOT_UNDERSTOOD
           
static String NUGGETS_XML
           
static String ONTOLOGY
           
static String PERFORMATIVE
           
static Collection PERFORMATIVES
          The allowed message attributes.
static String PROPAGATE
           
static String PROPOSE
           
static String PROTOCOL
           
static String PROTOCOL_BROKERING
           
static String PROTOCOL_CONTRACT_NET
           
static String PROTOCOL_DUTCH_AUCTION
           
static String PROTOCOL_ENGLISH_AUCTION
           
static String PROTOCOL_ITERATED_CONTRACT_NET
           
static String PROTOCOL_PROPOSE
           
static String PROTOCOL_QUERY
           
static String PROTOCOL_RECRUITING
           
static String PROTOCOL_REQUEST
           
static String PROTOCOL_REQUEST_WHEN
           
static String PROTOCOL_SUBSCRIBE
           
static Collection PROTOCOLS
          The standard protocols.
static String PROXY
           
static String QUERY_IF
           
static String QUERY_REF
           
static String RECEIVERS
          Not FIPA compliant, should be "receiver".
static String REFUSE
           
static String REJECT_PROPOSAL
           
static String REPLY_BY
           
static String REPLY_TO
           
static String REPLY_WITH
           
static String REQUEST
           
static String REQUEST_WHEN
           
static String REQUEST_WHENEVER
           
static String SENDER
           
static String SUBSCRIBE
           
static String UNKNOWN
           
static String X_MESSAGE_ID
           
 
Constructor Summary
SFipa()
           
 
Method Summary
static AgentDescription createAgentDescription(AgentIdentifier agent, ServiceDescription service)
          Create an agent description.
static AgentDescription createAgentDescription(AgentIdentifier agent, ServiceDescription[] services, String[] languages, String[] ontologies, String[] protocols)
          Create an agent description.
static ServiceDescription createServiceDescription(String name, String type, String ownership)
          Create a service description.
static ServiceDescription createServiceDescription(String name, String type, String ownership, String[] languages, String[] ontologies, String[] protocols, Property[] properties)
          Create a service description.
static String createUniqueId(String name)
          Create a globally unique conversation id.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_TYPE_NAME_FIPA

public static final String MESSAGE_TYPE_NAME_FIPA
The FIPA message type.

See Also:
Constant Field Values

AMS

public static final AgentIdentifier AMS
The FIPA AMS local agent identifier.


DF

public static final AgentIdentifier DF
The FIPA DF local agent identifier.


PROTOCOL_REQUEST

public static final String PROTOCOL_REQUEST
See Also:
Constant Field Values

PROTOCOL_QUERY

public static final String PROTOCOL_QUERY
See Also:
Constant Field Values

PROTOCOL_REQUEST_WHEN

public static final String PROTOCOL_REQUEST_WHEN
See Also:
Constant Field Values

PROTOCOL_BROKERING

public static final String PROTOCOL_BROKERING
See Also:
Constant Field Values

PROTOCOL_RECRUITING

public static final String PROTOCOL_RECRUITING
See Also:
Constant Field Values

PROTOCOL_PROPOSE

public static final String PROTOCOL_PROPOSE
See Also:
Constant Field Values

PROTOCOL_SUBSCRIBE

public static final String PROTOCOL_SUBSCRIBE
See Also:
Constant Field Values

PROTOCOL_ENGLISH_AUCTION

public static final String PROTOCOL_ENGLISH_AUCTION
See Also:
Constant Field Values

PROTOCOL_DUTCH_AUCTION

public static final String PROTOCOL_DUTCH_AUCTION
See Also:
Constant Field Values

PROTOCOL_CONTRACT_NET

public static final String PROTOCOL_CONTRACT_NET
See Also:
Constant Field Values

PROTOCOL_ITERATED_CONTRACT_NET

public static final String PROTOCOL_ITERATED_CONTRACT_NET
See Also:
Constant Field Values

PROTOCOLS

public static Collection PROTOCOLS
The standard protocols.


ACCEPT_PROPOSAL

public static final String ACCEPT_PROPOSAL
See Also:
Constant Field Values

AGREE

public static final String AGREE
See Also:
Constant Field Values

CANCEL

public static final String CANCEL
See Also:
Constant Field Values

CFP

public static final String CFP
See Also:
Constant Field Values

CONFIRM

public static final String CONFIRM
See Also:
Constant Field Values

DISCONFIRM

public static final String DISCONFIRM
See Also:
Constant Field Values

FAILURE

public static final String FAILURE
See Also:
Constant Field Values

INFORM

public static final String INFORM
See Also:
Constant Field Values

INFORM_IF

public static final String INFORM_IF
See Also:
Constant Field Values

INFORM_REF

public static final String INFORM_REF
See Also:
Constant Field Values

NOT_UNDERSTOOD

public static final String NOT_UNDERSTOOD
See Also:
Constant Field Values

PROPOSE

public static final String PROPOSE
See Also:
Constant Field Values

QUERY_IF

public static final String QUERY_IF
See Also:
Constant Field Values

QUERY_REF

public static final String QUERY_REF
See Also:
Constant Field Values

REFUSE

public static final String REFUSE
See Also:
Constant Field Values

REJECT_PROPOSAL

public static final String REJECT_PROPOSAL
See Also:
Constant Field Values

REQUEST

public static final String REQUEST
See Also:
Constant Field Values

REQUEST_WHEN

public static final String REQUEST_WHEN
See Also:
Constant Field Values

REQUEST_WHENEVER

public static final String REQUEST_WHENEVER
See Also:
Constant Field Values

SUBSCRIBE

public static final String SUBSCRIBE
See Also:
Constant Field Values

PROXY

public static final String PROXY
See Also:
Constant Field Values

PROPAGATE

public static final String PROPAGATE
See Also:
Constant Field Values

UNKNOWN

public static final String UNKNOWN
See Also:
Constant Field Values

PERFORMATIVES

public static Collection PERFORMATIVES
The allowed message attributes.


ENCODING

public static final String ENCODING
See Also:
Constant Field Values

IN_REPLY_TO

public static final String IN_REPLY_TO
See Also:
Constant Field Values

LANGUAGE

public static final String LANGUAGE
See Also:
Constant Field Values

ONTOLOGY

public static final String ONTOLOGY
See Also:
Constant Field Values

PROTOCOL

public static final String PROTOCOL
See Also:
Constant Field Values

REPLY_BY

public static final String REPLY_BY
See Also:
Constant Field Values

REPLY_WITH

public static final String REPLY_WITH
See Also:
Constant Field Values

RECEIVERS

public static final String RECEIVERS
Not FIPA compliant, should be "receiver".

See Also:
Constant Field Values

REPLY_TO

public static final String REPLY_TO
See Also:
Constant Field Values

PERFORMATIVE

public static final String PERFORMATIVE
See Also:
Constant Field Values

CONTENT

public static final String CONTENT
See Also:
Constant Field Values

SENDER

public static final String SENDER
See Also:
Constant Field Values

CONTENT_START

public static final String CONTENT_START
See Also:
Constant Field Values

CONTENT_CLASS

public static final String CONTENT_CLASS
See Also:
Constant Field Values

ACTION_CLASS

public static final String ACTION_CLASS
See Also:
Constant Field Values

CONVERSATION_ID

public static final String CONVERSATION_ID
See Also:
Constant Field Values

X_MESSAGE_ID

public static final String X_MESSAGE_ID
See Also:
Constant Field Values

MESSAGE_ATTRIBUTES

public static Set MESSAGE_ATTRIBUTES
The allowed message attributes.


FIPA_SL0

public static final String FIPA_SL0
See Also:
Constant Field Values

FIPA_SL1

public static final String FIPA_SL1
See Also:
Constant Field Values

FIPA_SL2

public static final String FIPA_SL2
See Also:
Constant Field Values

FIPA_SL

public static final String FIPA_SL
See Also:
Constant Field Values

JAVA_XML

public static final String JAVA_XML
See Also:
Constant Field Values

NUGGETS_XML

public static final String NUGGETS_XML
See Also:
Constant Field Values
Constructor Detail

SFipa

public SFipa()
Method Detail

createServiceDescription

public static ServiceDescription createServiceDescription(String name,
                                                          String type,
                                                          String ownership)
Create a service description.

Parameters:
name - The service name.
type - The service type.
ownership - The ownership of the service.

createServiceDescription

public static ServiceDescription createServiceDescription(String name,
                                                          String type,
                                                          String ownership,
                                                          String[] languages,
                                                          String[] ontologies,
                                                          String[] protocols,
                                                          Property[] properties)
Create a service description.

Parameters:
name - The service name.
type - The service type.
ownership - The ownership of the service.
languages - The languages understood by the service.
ontologies - The ontologies known by the service.
protocols - The protocols used by the service.
properties - Any additional service properties.

createAgentDescription

public static AgentDescription createAgentDescription(AgentIdentifier agent,
                                                      ServiceDescription service)
Create an agent description.

Parameters:
agent - The agent id.
service - The agent service.

createAgentDescription

public static AgentDescription createAgentDescription(AgentIdentifier agent,
                                                      ServiceDescription[] services,
                                                      String[] languages,
                                                      String[] ontologies,
                                                      String[] protocols)
Create an agent description.

Parameters:
agent - The agent id.
services - The agent service.
languages - The languages understood by the service.
ontologies - The ontologies known by the service.
protocols - The protocols used by the service.

createUniqueId

public static String createUniqueId(String name)
Create a globally unique conversation id.

Returns:
The conversation id.

Jadex 0.96-beta1

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.