Jadex 0.96-beta1

jadex.model
Class MessageType

java.lang.Object
  extended by jadex.model.MessageType
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FIPAMessageType

public abstract class MessageType
extends Object
implements Serializable

Representation of characteristics of a certain type of messages (e.g. fipa messages).

See Also:
Serialized Form

Nested Class Summary
static class MessageType.ParameterSpecification
          A class representing a parameter or parameter set specification.
 
Constructor Summary
MessageType(String name, MessageType.ParameterSpecification[] params, MessageType.ParameterSpecification[] paramsets)
          Create a new message type.
 
Method Summary
 boolean equals(Object o)
          Test if two message types are equal (based on the name).
 String getName()
          The name of the message type.
 String[] getParameterNames()
          Get all parameter names.
 MessageType.ParameterSpecification[] getParameters()
          Get the default parameters.
 String[] getParameterSetNames()
          Get all parameter set names.
 MessageType.ParameterSpecification[] getParameterSets()
          Get the default parameter sets.
abstract  String getReceiverIdentifier()
          Get the identifier for fetching the receivers.
abstract  String getSenderIdentifier()
          Get the identifier for fetching the sender.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageType

public MessageType(String name,
                   MessageType.ParameterSpecification[] params,
                   MessageType.ParameterSpecification[] paramsets)
Create a new message type.

Parameters:
name - The name of the message type.
Method Detail

getName

public String getName()
The name of the message type.


getParameters

public MessageType.ParameterSpecification[] getParameters()
Get the default parameters.


getParameterSets

public MessageType.ParameterSpecification[] getParameterSets()
Get the default parameter sets.


getParameterNames

public String[] getParameterNames()
Get all parameter names.

Returns:
The parameter names.

getParameterSetNames

public String[] getParameterSetNames()
Get all parameter set names.

Returns:
The parameter set names.

getReceiverIdentifier

public abstract String getReceiverIdentifier()
Get the identifier for fetching the receivers.

Returns:
The receiver identifier.

getSenderIdentifier

public abstract String getSenderIdentifier()
Get the identifier for fetching the sender.

Returns:
The sender identifier.

equals

public boolean equals(Object o)
Test if two message types are equal (based on the name).

Overrides:
equals in class Object

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.