Package hec.rss.model
Class StorageZoneRef
java.lang.Object
hec.rss.model.StorageZoneRef
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable
The Class StorageZoneRef.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new storage zone ref.StorageZoneRef(StorageZone zone) Instantiates a new storage zone ref. -
Method Summary
Modifier and TypeMethodDescriptionclone()getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intintGets the storage zone.doubleGets the tolerance.intbooleanisActive()booleanParses the data.booleanParses the data.voidsetActive(boolean set) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetOpID(int id) voidsetReservoirIndex(int id) voidsetTolerance(double tol) Sets the tolerance.voidsetZone(ReservoirElement res) voidsetZoneIndex(int id) voidupdateZone(RssAlt rssAlt) Update zone.writeData(BufferedWriter writer, String ruleRefString) Write data.writeInitString(String ruleRefString)
-
Constructor Details
-
StorageZoneRef
Instantiates a new storage zone ref.- Parameters:
zone- the zone
-
StorageZoneRef
public StorageZoneRef()Instantiates a new storage zone ref.
-
-
Method Details
-
getStorageZone
Gets the storage zone.- Returns:
- the storage zone
-
setActive
public void setActive(boolean set) -
isActive
public boolean isActive() -
setTolerance
public void setTolerance(double tol) Sets the tolerance.- Parameters:
tol- the new tolerance
-
getTolerance
public double getTolerance()Gets the tolerance.- Returns:
- the tolerance
-
writeData
Write data.- Parameters:
writer- the writerruleRefString- the rule ref string- Returns:
- the string
-
writeInitString
-
getOpsetId
public int getOpsetId() -
setOpID
public void setOpID(int id) -
getReservoirIndex
public int getReservoirIndex() -
setReservoirIndex
public void setReservoirIndex(int id) -
getZoneIndex
public int getZoneIndex() -
setZoneIndex
public void setZoneIndex(int id) -
parseData
Parses the data.- Parameters:
data- the dataalt- the alt- Returns:
- true, if successful
-
parseData
Parses the data.- Parameters:
data- the data- Returns:
- true, if successful
-
updateZone
Update zone.- Parameters:
rssAlt- the rss alt
-
setZone
-
clone
-
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
-