Package hec.rss.model
Class ReservoirOperatesForRule
java.lang.Object
hec.rss.model.ReservoirOperatesForRule
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable
This is a simple class used to mark wheater a rule is applied to a reservoir
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.
-
Field Details
-
reservoirID
public int reservoirID -
applyToRes
public boolean applyToRes
-
-
Constructor Details
-
ReservoirOperatesForRule
public ReservoirOperatesForRule() -
ReservoirOperatesForRule
public ReservoirOperatesForRule(int id, boolean apply)
-
-
Method Details
-
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
-