public class Constraint
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
attr |
private java.lang.Boolean |
isGlobal |
private java.lang.String |
op |
private java.lang.String |
serviceName |
private java.lang.Object |
val |
| Constructor and Description |
|---|
Constraint(java.lang.String attr,
java.lang.String op,
float val)
Creates a new Constraint object (global case)
|
Constraint(java.lang.String attr,
java.lang.String op,
float val,
java.lang.String serviceName)
Creates a new Constraint object (local case)
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAttr() |
java.lang.Boolean |
getIsGlobal() |
java.lang.String |
getOp() |
java.lang.String |
getServiceName() |
java.lang.Object |
getVal() |
void |
setAttr(java.lang.String attr) |
void |
setIsGlobal(java.lang.Boolean isGlobal) |
void |
setOp(java.lang.String op) |
void |
setServiceName(java.lang.String serviceName) |
void |
setVal(float val) |
private java.lang.String attr
private java.lang.String op
private java.lang.Object val
private java.lang.String serviceName
private java.lang.Boolean isGlobal
public Constraint(java.lang.String attr,
java.lang.String op,
float val)
attr - The attribute associated with the constraintop - The operand associated with the constraintval - The value associated with the constraintpublic Constraint(java.lang.String attr,
java.lang.String op,
float val,
java.lang.String serviceName)
attr - The attribute associated with the constraintop - The operand associated with the constraintval - The value associated with the constraintserviceName - The service to which this local constraint referspublic java.lang.String getServiceName()
public void setServiceName(java.lang.String serviceName)
serviceName - the serviceName to setpublic java.lang.Boolean getIsGlobal()
public void setIsGlobal(java.lang.Boolean isGlobal)
isGlobal - the isGlobal to setpublic java.lang.String getAttr()
public void setAttr(java.lang.String attr)
attr - the attr to setpublic java.lang.String getOp()
public void setOp(java.lang.String op)
op - the op to setpublic java.lang.Object getVal()
public void setVal(float val)
val - the val to set