Package hec.model
Class ConditionalItem
java.lang.Object
hec.model.ConditionalItem
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConditionalValueprotected ConditionalValuestatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanevaluate(RunTimeStep rts) EvaluatesgetConditionalValue(int num) getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.voidsetConditionalOperator(ConditionalOperator conditionalOperator) voidsetConditionalValue(int num, ConditionalValue conditionalValue) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetLogicalOperator(LogicalOperator logicalOperator) toString()voidupdateParentData(Conditional cond)
-
Field Details
-
FIRST_CONDITIONAL_VALUE
public static final int FIRST_CONDITIONAL_VALUE- See Also:
-
SECOND_CONDITIONAL_VALUE
public static final int SECOND_CONDITIONAL_VALUE- See Also:
-
_value1
-
_value2
-
-
Constructor Details
-
ConditionalItem
public ConditionalItem()
-
-
Method Details
-
clone
-
updateParentData
-
evaluate
Evaluates- Returns:
- true or false depending on
-
getConditionalValue
-
setConditionalValue
-
getLogicalOperator
-
setLogicalOperator
-
getConditionalOperator
-
setConditionalOperator
-
expressionString
-
toString
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-