CTAT 3.1 Function Reference

edu.cmu.pact.BehaviorRecorder.ProblemModel.Matcher.Functions
Class greaterThan

java.lang.Object
  extended by edu.cmu.pact.BehaviorRecorder.ProblemModel.Matcher.Functions.greaterThan

public class greaterThan
extends java.lang.Object

Returns true if the first argument is greater than the second, false otherwise.


Constructor Summary
greaterThan()
           
 
Method Summary
 boolean greaterThan(double value1, double value2)
          Returns true if the first argument is greater than the second, false otherwise.
 boolean greaterThan(double d1, String value2)
          Returns true if the first argument is greater than the second, false otherwise.
 boolean greaterThan(String value1, double d2)
          Returns true if the first argument is greater than the second, false otherwise.
 boolean greaterThan(String value1, String value2)
          Returns true if the first argument is greater than the second, false otherwise.
static void main(String[] args)
          Test harness.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

greaterThan

public greaterThan()
Method Detail

greaterThan

public boolean greaterThan(String value1,
                           String value2)

Returns true if the first argument is greater than the second, false otherwise. If the arguments cannot both be converted to numbers, then compares lexicographically, ignoring case.

Parameters:
value1 -
value2 -
Returns:
true if value1 is greater than value2, false otherwise

greaterThan

public boolean greaterThan(String value1,
                           double d2)

Returns true if the first argument is greater than the second, false otherwise. If the arguments cannot both be converted to numbers, then compares lexicographically, ignoring case.

Parameters:
value1 -
d2 -
Returns:
true if value1 is greater than value2, false otherwise

greaterThan

public boolean greaterThan(double d1,
                           String value2)

Returns true if the first argument is greater than the second, false otherwise. If the arguments cannot both be converted to numbers, then compares lexicographically, ignoring case.

Parameters:
d1 -
value2 -
Returns:
true if value1 is greater than value2; false otherwise, except true if value2 null

greaterThan

public boolean greaterThan(double value1,
                           double value2)

Returns true if the first argument is greater than the second, false otherwise.

Parameters:
value1 -
value2 -
Returns:
true if value1 is greater than value2, false otherwise

main

public static void main(String[] args)
Test harness.

Parameters:
args - arg1 & arg 2 are left & right operands

CTAT 3.1 Function Reference