org.vizzini.ai.logic
Class LiteralArgument
java.lang.Object
org.vizzini.util.AbstractBean
org.vizzini.ai.logic.AbstractArgument
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)
LiteralArgument
protected LiteralArgument(Object value)
- Construct this object.
- Parameters:
value
- The literal argument value.- Since:
- v0.2
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 |