JADE_SL.abs
Class AbsConcept

java.lang.Object
  extended byJADE_SL.abs.AbsObjectImpl
      extended byJADE_SL.abs.AbsPrimitiveSlotsHolder
          extended byJADE_SL.abs.AbsConcept
All Implemented Interfaces:
AbsObject, AbsTerm
Direct Known Subclasses:
AbsAgentAction, AbsAggregate

public class AbsConcept
extends AbsPrimitiveSlotsHolder
implements AbsTerm

Author:
Federico Bergenti - Universita` di Parma

Field Summary
 
Fields inherited from class JADE_SL.abs.AbsObjectImpl
 
Constructor Summary
AbsConcept(java.lang.String typeName)
          Construct an Abstract descriptor to hold a concept of the proper type (e.g.
 
Method Summary
 AbsTerm getAbsTerm(java.lang.String name)
          Gets the value of an attribute of the concept held by this abstract descriptor.
 boolean getBoolean(java.lang.String name)
          Utility method that allows getting the value of attributes of type boolean directly as a boolean i.e. not wrapped into an AbsPrimitive/code>.
 byte[] getByteSequence(java.lang.String name)
          Utility method that allows getting the value of attributes of type byte[] directly as a byte[] i.e. not wrapped into an AbsPrimitive/code>.
 java.util.Date getDate(java.lang.String name)
          Utility method that allows getting the value of attributes of type Date directly as a Date i.e. not wrapped into an AbsPrimitive/code>.
 double getDouble(java.lang.String name)
          Utility method that allows getting the value of attributes of type double directly as a double i.e. not wrapped into an AbsPrimitive/code>.
 float getFloat(java.lang.String name)
          Utility method that allows getting the value of attributes of type float directly as a float i.e. not wrapped into an AbsPrimitive/code>.
 int getInteger(java.lang.String name)
          Utility method that allows getting the value of attributes of type int directly as an int i.e. not wrapped into an AbsPrimitive/code>.
 long getLong(java.lang.String name)
          Utility method that allows getting the value of attributes of type long directly as a long i.e. not wrapped into an AbsPrimitive/code>.
 java.lang.String getString(java.lang.String name)
          Utility method that allows getting the value of attributes of type String directly as a String i.e. not wrapped into an AbsPrimitive/code>.
 void set(java.lang.String name, AbsTerm value)
          Sets an attribute of the concept held by this abstract descriptor.
 void set(java.lang.String name, boolean value)
          Utility method that allows setting attributes of type boolean without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, byte[] value)
          Utility method that allows setting attributes of type byte[] without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, java.util.Date value)
          Utility method that allows setting attributes of type Date without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, double value)
          Utility method that allows setting attributes of type double without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, float value)
          Utility method that allows setting attributes of type float without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, int value)
          Utility method that allows setting attributes of type int without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, long value)
          Utility method that allows setting attributes of type long without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, java.lang.String value)
          Utility method that allows setting attributes of type String without the need of wrapping the new value into an AbsPrimitive.
 
Methods inherited from class JADE_SL.abs.AbsObjectImpl
dump, dump, getAbsObject, getCount, getNameEnumeration, getNames, getTypeName, isGrounded, set, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface JADE_SL.abs.AbsObject
dump, getAbsObject, getCount, getNames, getTypeName, isGrounded
 

Constructor Detail

AbsConcept

public AbsConcept(java.lang.String typeName)
Construct an Abstract descriptor to hold a concept of the proper type (e.g. PERSON, ADDRESS...).

Parameters:
typeName - The name of the type of the concept held by this abstract descriptor.
Method Detail

set

public void set(java.lang.String name,
                AbsTerm value)
Sets an attribute of the concept held by this abstract descriptor.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

getAbsTerm

public AbsTerm getAbsTerm(java.lang.String name)
Gets the value of an attribute of the concept held by this abstract descriptor.

Parameters:
name - The name of the attribute.
Returns:
value The value of the attribute.

set

public void set(java.lang.String name,
                java.lang.String value)
Utility method that allows setting attributes of type String without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                boolean value)
Utility method that allows setting attributes of type boolean without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                int value)
Utility method that allows setting attributes of type int without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                long value)
Utility method that allows setting attributes of type long without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                float value)
Utility method that allows setting attributes of type float without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                double value)
Utility method that allows setting attributes of type double without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                java.util.Date value)
Utility method that allows setting attributes of type Date without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                byte[] value)
Utility method that allows setting attributes of type byte[] without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

getString

public java.lang.String getString(java.lang.String name)
Utility method that allows getting the value of attributes of type String directly as a String i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getBoolean

public boolean getBoolean(java.lang.String name)
Utility method that allows getting the value of attributes of type boolean directly as a boolean i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getInteger

public int getInteger(java.lang.String name)
Utility method that allows getting the value of attributes of type int directly as an int i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getLong

public long getLong(java.lang.String name)
Utility method that allows getting the value of attributes of type long directly as a long i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getFloat

public float getFloat(java.lang.String name)
Utility method that allows getting the value of attributes of type float directly as a float i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getDouble

public double getDouble(java.lang.String name)
Utility method that allows getting the value of attributes of type double directly as a double i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getDate

public java.util.Date getDate(java.lang.String name)
Utility method that allows getting the value of attributes of type Date directly as a Date i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getByteSequence

public byte[] getByteSequence(java.lang.String name)
Utility method that allows getting the value of attributes of type byte[] directly as a byte[] i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.