public class MetaSetRule
extends java.lang.Object
Constructor and Description |
---|
MetaSetRule()
Default constructor
|
MetaSetRule(int sid,
int index,
int type,
java.lang.String value,
int operator)
Convienence constructor that fills in the attributes of this Rule.
|
Modifier and Type | Method and Description |
---|---|
int |
getFunc()
Return the function number of this rule, if we are a function
|
int |
getIndex()
Get the index into the list of rules that is this rule.
|
int |
getOperator() |
int |
getRateOp() |
int |
getRateVal() |
int |
getSid()
Get the Set ID for this rule
|
int |
getType()
Is this rule a MetaSet.NAME or a MetaSet.OPERATOR
|
java.lang.String |
getValue() |
void |
setFunc(int func) |
void |
setIndex(int index)
Set the index into the list of rules that is this rule.
|
void |
setOperator(int operator) |
void |
setRateOp(int rateOp) |
void |
setRateVal(int rateVal) |
void |
setSid(int sid)
Set the Set ID for the MetaSet that this rule belongs to.
|
void |
setType(int type) |
void |
setValue(java.lang.String value) |
public MetaSetRule()
public MetaSetRule(int sid, int index, int type, java.lang.String value, int operator)
sid
- The Set ID that this rule belongs toindex
- The index into the list that is this rule.type
- name or operatorvalue
- if this rule is a name, then this is the Set name that makes up this ruleoperator
- If this rule is an operator, than this is value of the operator.public int getSid()
public void setSid(int sid)
sid
- The sid to set.public int getIndex()
public void setIndex(int index)
index
- The index to set.public int getType()
public void setType(int type)
type
- The type to set.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value to set.public int getOperator()
public void setOperator(int operator)
operator
- The operator to set.public int getRateOp()
public void setRateOp(int rateOp)
rateOp
- the rateOp to setpublic int getRateVal()
public void setRateVal(int rateVal)
rateVal
- the rateVal to setpublic int getFunc()
public void setFunc(int func)