jade.content.abs
Class AbsAgentAction

java.lang.Object
  |
  +--jade.content.abs.AbsObjectImpl
        |
        +--jade.content.abs.AbsPrimitiveSlotsHolder
              |
              +--jade.content.abs.AbsConcept
                    |
                    +--jade.content.abs.AbsAgentAction
All Implemented Interfaces:
AbsContentElement, AbsObject, AbsTerm, AgentAction, Concept, ContentElement, Serializable, java.io.Serializable, Term

public class AbsAgentAction
extends AbsConcept
implements AbsContentElement, AgentAction

An abstract descriptor that can hold an agent action expression.

Author:
Federico Bergenti - Universita` di Parma
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jade.content.abs.AbsObject
ABS_AGENT_ACTION, ABS_AGGREGATE, ABS_CONCEPT, ABS_CONTENT_ELEMENT_LIST, ABS_IRE, ABS_PREDICATE, ABS_PRIMITIVE, ABS_VARIABLE, UNKNOWN
 
Constructor Summary
AbsAgentAction(java.lang.String typeName)
          Construct an Abstract descriptor to hold an agent action of the proper type, e.g.
 
Method Summary
 int getAbsType()
           
static java.lang.Class getJavaClass()
           
 boolean isAContentExpression()
          Return true if this Abstract Content Element represents a ContentExpression of the SL Grammar (see also FIPA-SL specifications).
 void set(java.lang.String name, AbsPredicate value)
          Set an attribute of the agent action held by this abstract descriptor.
 void setIsAContentExpression(boolean flag)
          Set the isAContentExpression flag to the passed value.
 
Methods inherited from class jade.content.abs.AbsConcept
getAbsTerm, set
 
Methods inherited from class jade.content.abs.AbsPrimitiveSlotsHolder
getBoolean, getByteSequence, getDate, getDouble, getFloat, getInteger, getLong, getString, set, set, set, set, set, set, set, set, set
 
Methods inherited from class jade.content.abs.AbsObjectImpl
equals, getAbsObject, getCount, getNames, getTypeName, hashCode, isGrounded, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jade.content.abs.AbsObject
getAbsObject, getCount, getNames, getTypeName, isGrounded
 

Constructor Detail

AbsAgentAction

public AbsAgentAction(java.lang.String typeName)
Construct an Abstract descriptor to hold an agent action of the proper type, e.g. SELL, BUY....

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

set

public void set(java.lang.String name,
                AbsPredicate value)
Set an attribute of the agent action held by this abstract descriptor.

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

getJavaClass

public static java.lang.Class getJavaClass()

isAContentExpression

public boolean isAContentExpression()
Description copied from interface: AbsContentElement
Return true if this Abstract Content Element represents a ContentExpression of the SL Grammar (see also FIPA-SL specifications).

Specified by:
isAContentExpression in interface AbsContentElement
Returns:
true if this Abstract Content Element represents a ContentExpression of the SL Grammar (see also FIPA-SL specifications), false otherwise
See Also:
AbsContent.isAContentExpression

setIsAContentExpression

public void setIsAContentExpression(boolean flag)
Description copied from interface: AbsContentElement
Set the isAContentExpression flag to the passed value. By default, if this method was not called, this value is intialized to false.

Specified by:
setIsAContentExpression in interface AbsContentElement
Parameters:
flag - true if this Abstract Content Element represents a ContentExpression of the SL Grammar (see also FIPA-SL specifications), false otherwise
See Also:
AbsContent.setIsAContentExpression(boolean flag)

getAbsType

public int getAbsType()
Specified by:
getAbsType in interface AbsObject
Overrides:
getAbsType in class AbsConcept


JADE