JADE_SL.abs
Class AbsPredicate

java.lang.Object
  extended byJADE_SL.abs.AbsObjectImpl
      extended byJADE_SL.abs.AbsPrimitiveSlotsHolder
          extended byJADE_SL.abs.AbsPredicate
All Implemented Interfaces:
AbsContentElement, AbsObject

public class AbsPredicate
extends AbsPrimitiveSlotsHolder
implements AbsContentElement

Author:
Paola Turci, Federico Bergenti - Universita` di Parma

Field Summary
 
Fields inherited from class JADE_SL.abs.AbsObjectImpl
 
Constructor Summary
AbsPredicate(java.lang.String typeName)
          Construct an Abstract descriptor to hold a predicate of the proper type (e.g.
 
Method Summary
 AbsTerm getAbsTerm(java.lang.String name)
          Gets the value (casted as an AbsTerm) of an attribute of the predicate 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, AbsObject value)
          Sets an attribute of the predicate 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, 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

AbsPredicate

public AbsPredicate(java.lang.String typeName)
Construct an Abstract descriptor to hold a predicate of the proper type (e.g. FATHER_OF, WORKS_FOR...).

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

set

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

Overrides:
set in class AbsObjectImpl
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 (casted as an AbsTerm) of an attribute of the predicate held by this abstract descriptor. This method is here mainly for backward compatibility.

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.