org.shapelogic.entities
Class NumericRule

java.lang.Object
  extended by org.shapelogic.entities.NumericRule

public class NumericRule
extends java.lang.Object


Constructor Summary
NumericRule()
           
NumericRule(java.lang.String parentOH, java.lang.String name, java.lang.String variable, java.lang.String expression)
          New constructor taking a predicateName to use when creating ParametricRuleTask.
NumericRule(java.lang.String parentOH, java.lang.String name, java.lang.String variable, java.lang.String expression, java.lang.Double expected, java.lang.String className)
          Deprecated. 
NumericRule(java.lang.String parentOH, java.lang.String name, java.lang.String variable, java.lang.String expression, java.lang.String predicateName, java.lang.Double expected)
          New constructor taking a predicateName to use when creating ParametricRuleTask.
 
Method Summary
 java.lang.String getClassName()
           
 java.lang.Double getExpected()
           
 java.lang.String getExpression()
           
 java.lang.Long getId()
           
 java.lang.String getName()
           
 java.lang.String getParentOH()
           
 java.lang.String getVariable()
           
 java.lang.String getVariableAndExpression()
           
 BaseTask makeTask(BaseTask parentTask)
          Create task based on rule.
 void setClassName(java.lang.String name)
           
 void setExpected(java.lang.Double expected)
           
 void setExpression(java.lang.String expression)
           
 void setId(java.lang.Long id)
           
 void setName(java.lang.String name)
           
 void setParentOH(java.lang.String parentOH)
           
 void setVariable(java.lang.String variable)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumericRule

@Deprecated
public NumericRule(java.lang.String parentOH,
                              java.lang.String name,
                              java.lang.String variable,
                              java.lang.String expression,
                              java.lang.Double expected,
                              java.lang.String className)
Deprecated. 

Old constructor taking a class name for creating specific rules.


NumericRule

public NumericRule(java.lang.String parentOH,
                   java.lang.String name,
                   java.lang.String variable,
                   java.lang.String expression,
                   java.lang.String predicateName,
                   java.lang.Double expected)
New constructor taking a predicateName to use when creating ParametricRuleTask.


NumericRule

public NumericRule(java.lang.String parentOH,
                   java.lang.String name,
                   java.lang.String variable,
                   java.lang.String expression)
New constructor taking a predicateName to use when creating ParametricRuleTask.


NumericRule

public NumericRule()
Method Detail

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

getExpression

public java.lang.String getExpression()

setExpression

public void setExpression(java.lang.String expression)

getExpected

public java.lang.Double getExpected()

setExpected

public void setExpected(java.lang.Double expected)

getParentOH

public java.lang.String getParentOH()

setParentOH

public void setParentOH(java.lang.String parentOH)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getVariable

public java.lang.String getVariable()

setVariable

public void setVariable(java.lang.String variable)

getVariableAndExpression

public java.lang.String getVariableAndExpression()

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String name)

makeTask

public BaseTask makeTask(BaseTask parentTask)
Create task based on rule.

Parameters:
parentTask - used for inserting this rule as a child of parent
Returns:
the task representing the rule


Copyright © 2009. All Rights Reserved.