org.vizzini.ui.ai.logic
Class AbstractArgumentWrapper

java.lang.Object
  extended by org.vizzini.ui.ai.logic.AbstractArgumentWrapper
All Implemented Interfaces:
IArgumentWrapper
Direct Known Subclasses:
LiteralArgumentWrapper, PropertyArgumentWrapper

public abstract class AbstractArgumentWrapper
extends Object
implements IArgumentWrapper

Provides base functionality for argument wrappers in the logic system. Wrappers are used to provide a proper display string to the user interface.

Since:
v0.2
Version:
v0.2
Author:
Jeffrey M. Thompson

Constructor Summary
AbstractArgumentWrapper(IArgument argument)
          Construct this object with the given parameter.
 
Method Summary
 boolean equals(Object object)
          Return true if this equals the given object.
 IArgument getArgument()
          Return the argument wrapped by this object.
protected  void setArgument(IArgument argument)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.vizzini.ui.ai.logic.IArgumentWrapper
toString
 

Constructor Detail

AbstractArgumentWrapper

public AbstractArgumentWrapper(IArgument argument)
Construct this object with the given parameter.

Parameters:
argument - Argument.
Since:
v0.2
Method Detail

equals

public boolean equals(Object object)
Return true if this equals the given object.

Overrides:
equals in class Object
Parameters:
object - Object to compare.
Since:
v0.2

getArgument

public IArgument getArgument()
Description copied from interface: IArgumentWrapper
Return the argument wrapped by this object.

Specified by:
getArgument in interface IArgumentWrapper
Returns:
Return argument.
Since:
v0.2

setArgument

protected void setArgument(IArgument argument)
Parameters:
argument - The argument to set.
Since:
v0.2


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02