com.deltalearn.rte.webservice.data
Interface IInteractionResult


public interface IInteractionResult

Represents the overall result of this interaction.

A result can be one of InteractionResultEnum values, such as correct or incorrect, or may be a numerical value such as 0.8. This last value is given by a SCO, not by the LMS.

Version:
0.1

Method Summary
 double getNumericValue()
          Returns the numeric value of this result, if the result is a numeric value, or 0 otherwise.
 InteractionResultEnum getResult()
          Returns the overall result of this interaction, such as correct or incorrect, if the result is not a numeric value, or null otherwise.
 boolean isNumericValue()
          Determines if the result is a numeric value, such as 0.8.
 

Method Detail

isNumericValue

boolean isNumericValue()
Determines if the result is a numeric value, such as 0.8.

Returns:
true if the result is a numeric value, false otherwise

getNumericValue

double getNumericValue()
Returns the numeric value of this result, if the result is a numeric value, or 0 otherwise.

Returns:
the numeric value of this result
See Also:
isNumericValue()

getResult

InteractionResultEnum getResult()
Returns the overall result of this interaction, such as correct or incorrect, if the result is not a numeric value, or null otherwise.

Returns:
the overall result of this interaction
See Also:
isNumericValue()