org.problets.domain.model.expression
Class GradingUtilities

java.lang.Object
  extended by org.problets.domain.model.expression.GradingUtilities

public class GradingUtilities
extends java.lang.Object

GradingUtilities To hold grading functions for expressions

Author:
Amruth Kumar Date: 3 / 12 / 2008

Constructor Summary
GradingUtilities()
           
 
Method Summary
static java.lang.String getEquivTemplate(java.lang.String currentTemplate, java.lang.String suffix)
          Returns a literal constant equivalent to the value of the expression currentTemplate + suffix.
static boolean isRandomConstant(java.lang.String template)
          Returns true if the template is that of a random constant and false otherwise
static boolean isVariableTemplate(java.lang.String template)
          Returns true of the template is a variable and false otherwise
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradingUtilities

public GradingUtilities()
Method Detail

getEquivTemplate

public static java.lang.String getEquivTemplate(java.lang.String currentTemplate,
                                                java.lang.String suffix)
Returns a literal constant equivalent to the value of the expression currentTemplate + suffix.


isRandomConstant

public static boolean isRandomConstant(java.lang.String template)
Returns true if the template is that of a random constant and false otherwise


isVariableTemplate

public static boolean isVariableTemplate(java.lang.String template)
Returns true of the template is a variable and false otherwise


main

public static void main(java.lang.String[] args)