org.vizzini.ai.logic
Class LiteralArgument

java.lang.Object
  extended by org.vizzini.util.AbstractBean
      extended by org.vizzini.ai.logic.AbstractArgument
          extended by org.vizzini.ai.logic.LiteralArgument
All Implemented Interfaces:
Cloneable, IArgument

public class LiteralArgument
extends AbstractArgument

Provides a literal argument for use in sentences in the logic system. Instances of this class are obtained from ArgumentFactory.create().

Since:
v0.2
Version:
v0.2
Author:
Jeffrey M. Thompson
See Also:
ArgumentFactory.create(java.lang.Object)

Field Summary
 
Fields inherited from class org.vizzini.util.AbstractBean
IGNORE_PROPERTIES
 
Constructor Summary
protected LiteralArgument(Object value)
          Construct this object.
 
Method Summary
 ArgumentType getArgumentType()
          Return the arg type.
 Object getValue()
           
 Object getValue(Object contextItem)
          Return the value of this argument, ignoring the given context item.
protected  void setValue(Object value)
           
 
Methods inherited from class org.vizzini.ai.logic.AbstractArgument
clone
 
Methods inherited from class org.vizzini.util.AbstractBean
appendArray, appendCollection, appendList, appendMap, compareBooleans, compareObjects, equals, getIgnoreProperties, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LiteralArgument

protected LiteralArgument(Object value)
Construct this object.

Parameters:
value - The literal argument value.
Since:
v0.2
Method Detail

getArgumentType

public ArgumentType getArgumentType()
Return the arg type.

Since:
v0.2

getValue

public Object getValue()
Returns:
Return value.
Since:
v0.2

getValue

public Object getValue(Object contextItem)
                throws LogicException
Return the value of this argument, ignoring the given context item.

Parameters:
contextItem - Context item, not used by this class.
Throws:
LogicException
Since:
v0.2

setValue

protected void setValue(Object value)
Parameters:
value - The value to set.
Since:
v0.2


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02