fr.lifl.magique.util
Class Answer

java.lang.Object
  extended byfr.lifl.magique.util.Answer

public class Answer
extends java.lang.Object

Multiple answers to a question are stored in an AnswerVector. Answer objects represent elements of this vector.

See Also:
AnswerVector

Constructor Summary
Answer(java.lang.Object value, java.lang.String answerer, int pathLength)
           
 
Method Summary
 java.lang.String getAnswerer()
          returns the name of the answerer
 int getPathLength()
          returns the path used to reach the answerer
 java.lang.Object getValue()
          returns the value of the answer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Answer

public Answer(java.lang.Object value,
              java.lang.String answerer,
              int pathLength)
Method Detail

getValue

public java.lang.Object getValue()
returns the value of the answer

Returns:
the value of the answer

getAnswerer

public java.lang.String getAnswerer()
returns the name of the answerer

Returns:
the name of the answerer

getPathLength

public int getPathLength()
returns the path used to reach the answerer

Returns:
the path used to reach the answerer