public class Subcondition
extends Object
Condition
. A Subcondition comprises
a reference to its associated ResultHandle, a comparator, and a value.
Example:
ResultHandlehTput = action.produce("tputIP"); Condition condition = action.addCondition(Condition.ALL); Subcondition subCond = condition.addSubcondition(hTput, "<", 128000);
Constructor and Description |
---|
Subcondition()
Default constructor
|
Subcondition(ResultHandle resultHandle,
String comparator,
double value)
Full constructor.
|
Subcondition(ResultHandle resultHandle,
String comparator,
float value)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getBindComparator()
Gets the comparator.
|
int |
getID()
Gets the ID that identifies the Subcondition at the MINER core.
|
ResultHandle |
getResult()
Gets the ResultHandle associated to this Subcondition.
|
Double |
getValue()
Gets the value of the Subcondition.
|
void |
setBindComparator(String comparator)
Sets the comparator.
|
void |
setResult(ResultHandle resultHandle)
Sets the ResultHandle to which this Subcondition is associated.
|
void |
setValue(float value)
Sets the value of the Subcondition.
|
public Subcondition()
public Subcondition(ResultHandle resultHandle, String comparator, float value)
resultHandle
- The resultHandle to which this subcondition is associatedcomparator
- A comparator, i.e. one of "<", ">", "<=", ">=", "==", "!="value
- The value to compare topublic Subcondition(ResultHandle resultHandle, String comparator, double value)
resultHandle
- The resultHandle to which this subcondition is associatedcomparator
- A comparator, i.e. one of "<", ">", "<=", ">=", "==", "!="value
- The value to compare topublic void setResult(ResultHandle resultHandle)
resultHandle
- the resultHandlepublic ResultHandle getResult()
public void setBindComparator(String comparator)
comparator
- the comparatorpublic String getBindComparator()
public void setValue(float value)
value
- the valuepublic Double getValue()
public int getID()
Copyright (c) Salzburg Research Forschungsgesellschaft mbH. All rights reserved.