Package hec.model
Class ConditionalOperator
java.lang.Object
hec.model.ConditionalOperator
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleancompare(ConditionalValue value1, ConditionalValue value2, RunTimeStep rts) protected intcompareTimeSeriesValues(Object value1, Object value2, RunTimeStep rts) booleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.static HecTimebooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.static voidsetStartOfYear(HecTime hTime) toString()
-
Field Details
-
DAYS
-
NO_OPERATOR
public static final int NO_OPERATOR- See Also:
-
EQUALS_OPERATOR
public static final int EQUALS_OPERATOR- See Also:
-
NOT_EQUALS_OPERATOR
public static final int NOT_EQUALS_OPERATOR- See Also:
-
GREATER_THAN_OPERATOR
public static final int GREATER_THAN_OPERATOR- See Also:
-
GREATER_THAN_EQUALS_OPERATOR
public static final int GREATER_THAN_EQUALS_OPERATOR- See Also:
-
LESS_THAN_OPERATOR
public static final int LESS_THAN_OPERATOR- See Also:
-
LESS_THAN_EQUALS_OPERATOR
public static final int LESS_THAN_EQUALS_OPERATOR- See Also:
-
TOSTRING_VALUES
-
-
Constructor Details
-
ConditionalOperator
public ConditionalOperator() -
ConditionalOperator
public ConditionalOperator(int operator)
-
-
Method Details
-
equals
-
clone
-
toString
-
getStartOfYear
-
setStartOfYear
-
compare
-
compareTimeSeriesValues
-
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
-