jade.domain.FIPAAgentManagement
Class Property

java.lang.Object
  |
  +--jade.domain.FIPAAgentManagement.Property
All Implemented Interfaces:
Concept, java.io.Serializable, Serializable, Term

public class Property
extends java.lang.Object
implements Concept

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

Version:
$Date: 2004-07-09 13:04:29 +0200 (Fri, 09 Jul 2004) $ $Revision: 5200 $
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.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.
 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
clone, 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.


JADE