jade.domain.FIPAAgentManagement
Class Property

java.lang.Object
  extended by jade.domain.FIPAAgentManagement.Property
All Implemented Interfaces:
Concept, Term, java.io.Serializable

public class Property
extends java.lang.Object
implements Concept

This class implements the property type, a pair of a name and value.

Version:
$Date: 2009-08-26 08:56:09 +0200 (mer, 26 ago 2009) $ $Revision: 6183 $
Author:
Fabio Bellifemine - CSELT S.p.A.
See Also:
FIPAManagementOntology, Serialized Form

Constructor Summary
Property()
          Default constructor.
Property(java.lang.String name, java.lang.Object value)
          Create a property object, with the given name and value pair.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getName()
          Retrieve the name of this property object.
 java.lang.Object getValue()
          Retrieve the value of this property object, associated with the property name.
 boolean match(Property p)
           
 void setName(java.lang.String n)
          Set the name of the property object.
 void setValue(java.lang.Object o)
          Set the value for this property object, attached to the property name.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property()
Default constructor. A default constructor is needed for JADE ontological classes.


Property

public Property(java.lang.String name,
                java.lang.Object value)
Create a property object, with the given name and value pair.

Parameters:
name - The name of the property.
value - The Java object associated with the given name.
Method Detail

setName

public void setName(java.lang.String n)
Set the name of the property object.

Parameters:
n - The new name for this property.

getName

public java.lang.String getName()
Retrieve the name of this property object.

Returns:
The string that is the name of this property, or null if no name was set.

setValue

public void setValue(java.lang.Object o)
Set the value for this property object, attached to the property name.

Parameters:
o - The new Java object to attach to the property name.

getValue

public java.lang.Object getValue()
Retrieve the value of this property object, associated with the property name.

Returns:
The value of this property, or null if no value was set.

match

public boolean match(Property p)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object


These are the official JADE API. For these API backward compatibility is guaranteed accross JADE versions